checks.d.ts 701 B

12345678910111213141516171819202122
  1. import { entityKind } from "../entity.js";
  2. import type { SQL } from "../sql/sql.js";
  3. import type { SQLiteTable } from "./table.js";
  4. export declare class CheckBuilder {
  5. name: string;
  6. value: SQL;
  7. static readonly [entityKind]: string;
  8. protected brand: 'SQLiteConstraintBuilder';
  9. constructor(name: string, value: SQL);
  10. build(table: SQLiteTable): Check;
  11. }
  12. export declare class Check {
  13. table: SQLiteTable;
  14. static readonly [entityKind]: string;
  15. _: {
  16. brand: 'SQLiteCheck';
  17. };
  18. readonly name: string;
  19. readonly value: SQL;
  20. constructor(table: SQLiteTable, builder: CheckBuilder);
  21. }
  22. export declare function check(name: string, value: SQL): CheckBuilder;