π₯ π₯ π₯ A Free & Self-hostable Airtable Alternative
TypeScript airtableairtable-alternativeautomatic-apihacktoberfestlow-codeno-codeno-code-databaseno-code-platformpostgresqlrest-apirestful-apispreadsheetsqliteswagger
import { type ColumnType } from 'nocodb-sdk'
import {
canEnableUniqueConstraint as checkCanEnableUniqueConstraint,
isUniqueConstraintSupportedType,
} from '~/utils/uniqueConstraintHelpers'
export function useUniqueConstraintHelpers() {
return {
isUniqueConstraintSupportedType,
canEnableUniqueConstraint: (column: ColumnType, isXcdbBase: boolean) => checkCanEnableUniqueConstraint(column, isXcdbBase),
}
}