CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

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