UNPKG

drizzle-orm

Version:

Drizzle ORM package for SQL databases

25 lines (24 loc) 1.08 kB
import { entityKind } from "../entity.cjs"; import type { SingleStoreColumn } from "./columns/index.cjs"; import type { SingleStoreTable } from "./table.cjs"; export declare function unique(name?: string): UniqueOnConstraintBuilder; export declare function uniqueKeyName(table: SingleStoreTable, columns: string[]): string; export declare class UniqueConstraintBuilder { private name?; static readonly [entityKind]: string; constructor(columns: SingleStoreColumn[], name?: string | undefined); } export declare class UniqueOnConstraintBuilder { static readonly [entityKind]: string; constructor(name?: string); on(...columns: [SingleStoreColumn, ...SingleStoreColumn[]]): UniqueConstraintBuilder; } export declare class UniqueConstraint { readonly table: SingleStoreTable; static readonly [entityKind]: string; readonly columns: SingleStoreColumn[]; readonly name?: string; readonly nullsNotDistinct: boolean; constructor(table: SingleStoreTable, columns: SingleStoreColumn[], name?: string); getName(): string | undefined; }