checks.d.cts 610 B

123456789101112131415161718
  1. import { entityKind } from "../entity.cjs";
  2. import type { SQL } from "../sql/index.cjs";
  3. import type { GelTable } from "./table.cjs";
  4. export declare class CheckBuilder {
  5. name: string;
  6. value: SQL;
  7. static readonly [entityKind]: string;
  8. protected brand: 'GelConstraintBuilder';
  9. constructor(name: string, value: SQL);
  10. }
  11. export declare class Check {
  12. table: GelTable;
  13. static readonly [entityKind]: string;
  14. readonly name: string;
  15. readonly value: SQL;
  16. constructor(table: GelTable, builder: CheckBuilder);
  17. }
  18. export declare function check(name: string, value: SQL): CheckBuilder;