19 lines
613 B
TypeScript
19 lines
613 B
TypeScript
import { entityKind } from "../entity.js";
|
|
import type { SQL } from "../sql/sql.js";
|
|
import type { MySqlTable } from "./table.js";
|
|
export declare class CheckBuilder {
|
|
name: string;
|
|
value: SQL;
|
|
static readonly [entityKind]: string;
|
|
protected brand: 'MySqlConstraintBuilder';
|
|
constructor(name: string, value: SQL);
|
|
}
|
|
export declare class Check {
|
|
table: MySqlTable;
|
|
static readonly [entityKind]: string;
|
|
readonly name: string;
|
|
readonly value: SQL;
|
|
constructor(table: MySqlTable, builder: CheckBuilder);
|
|
}
|
|
export declare function check(name: string, value: SQL): CheckBuilder;
|