Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
24 lines
989 B
Plaintext
24 lines
989 B
Plaintext
import { entityKind } from "../entity.cjs";
|
|
import type { SQLiteColumn } from "./columns/common.cjs";
|
|
import type { SQLiteTable } from "./table.cjs";
|
|
export declare function uniqueKeyName(table: SQLiteTable, columns: string[]): string;
|
|
export declare function unique(name?: string): UniqueOnConstraintBuilder;
|
|
export declare class UniqueConstraintBuilder {
|
|
private name?;
|
|
static readonly [entityKind]: string;
|
|
constructor(columns: SQLiteColumn[], name?: string | undefined);
|
|
}
|
|
export declare class UniqueOnConstraintBuilder {
|
|
static readonly [entityKind]: string;
|
|
constructor(name?: string);
|
|
on(...columns: [SQLiteColumn, ...SQLiteColumn[]]): UniqueConstraintBuilder;
|
|
}
|
|
export declare class UniqueConstraint {
|
|
readonly table: SQLiteTable;
|
|
static readonly [entityKind]: string;
|
|
readonly columns: SQLiteColumn[];
|
|
readonly name?: string;
|
|
constructor(table: SQLiteTable, columns: SQLiteColumn[], name?: string);
|
|
getName(): string | undefined;
|
|
}
|