Files
avz-site/node_modules/drizzle-orm/sqlite-core/checks.d.cts
T
2026-06-10 12:38:42 -03:00

23 lines
704 B
TypeScript

import { entityKind } from "../entity.cjs";
import type { SQL } from "../sql/sql.cjs";
import type { SQLiteTable } from "./table.cjs";
export declare class CheckBuilder {
name: string;
value: SQL;
static readonly [entityKind]: string;
protected brand: 'SQLiteConstraintBuilder';
constructor(name: string, value: SQL);
build(table: SQLiteTable): Check;
}
export declare class Check {
table: SQLiteTable;
static readonly [entityKind]: string;
_: {
brand: 'SQLiteCheck';
};
readonly name: string;
readonly value: SQL;
constructor(table: SQLiteTable, builder: CheckBuilder);
}
export declare function check(name: string, value: SQL): CheckBuilder;