CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
unique-constraint.d.ts26 linesDownload Raw Back to gel-core
1import { entityKind } from "../entity.js";2import type { GelColumn } from "./columns/index.js";3import type { GelTable } from "./table.js";4export declare function unique(name?: string): UniqueOnConstraintBuilder;5export declare function uniqueKeyName(table: GelTable, columns: string[]): string;6export declare class UniqueConstraintBuilder {7    private name?;8    static readonly [entityKind]: string;9    constructor(columns: GelColumn[], name?: string | undefined);10    nullsNotDistinct(): this;11}12export declare class UniqueOnConstraintBuilder {13    static readonly [entityKind]: string;14    constructor(name?: string);15    on(...columns: [GelColumn, ...GelColumn[]]): UniqueConstraintBuilder;16}17export declare class UniqueConstraint {18    readonly table: GelTable;19    static readonly [entityKind]: string;20    readonly columns: GelColumn[];21    readonly name?: string;22    readonly nullsNotDistinct: boolean;23    constructor(table: GelTable, columns: GelColumn[], nullsNotDistinct: boolean, name?: string);24    getName(): string | undefined;25}26