Files
Gemini-Search/node_modules/drizzle-orm/sqlite-core/checks.d.ts
Ammaar Reshi d6025af146 Initial commit
2025-01-04 14:06:53 +00:00

23 lines
701 B
TypeScript

import { entityKind } from "../entity.js";
import type { SQL } from "../sql/sql.js";
import type { SQLiteTable } from "./table.js";
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;