Initial commit

This commit is contained in:
Ammaar Reshi
2025-01-04 14:06:53 +00:00
parent 7082408604
commit d6025af146
23760 changed files with 3299690 additions and 0 deletions

View File

@ -0,0 +1,24 @@
import { entityKind } from "../entity.js";
import type { MySqlColumn } from "./columns/index.js";
import type { MySqlTable } from "./table.js";
export declare function unique(name?: string): UniqueOnConstraintBuilder;
export declare function uniqueKeyName(table: MySqlTable, columns: string[]): string;
export declare class UniqueConstraintBuilder {
private name?;
static readonly [entityKind]: string;
constructor(columns: MySqlColumn[], name?: string | undefined);
}
export declare class UniqueOnConstraintBuilder {
static readonly [entityKind]: string;
constructor(name?: string);
on(...columns: [MySqlColumn, ...MySqlColumn[]]): UniqueConstraintBuilder;
}
export declare class UniqueConstraint {
readonly table: MySqlTable;
static readonly [entityKind]: string;
readonly columns: MySqlColumn[];
readonly name?: string;
readonly nullsNotDistinct: boolean;
constructor(table: MySqlTable, columns: MySqlColumn[], name?: string);
getName(): string | undefined;
}