checks.d.ts 613 B

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