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
25 lines
1.0 KiB
Plaintext
25 lines
1.0 KiB
Plaintext
import { entityKind } from "../entity.js";
|
|
import type { SingleStoreColumn } from "./columns/index.js";
|
|
import type { SingleStoreTable } from "./table.js";
|
|
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;
|
|
}
|