boolean.d.ts 1001 B

12345678910111213141516171819202122
  1. import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
  2. import type { ColumnBaseConfig } from "../../column.js";
  3. import { entityKind } from "../../entity.js";
  4. import { PgColumn, PgColumnBuilder } from "./common.js";
  5. export type PgBooleanBuilderInitial<TName extends string> = PgBooleanBuilder<{
  6. name: TName;
  7. dataType: 'boolean';
  8. columnType: 'PgBoolean';
  9. data: boolean;
  10. driverParam: boolean;
  11. enumValues: undefined;
  12. }>;
  13. export declare class PgBooleanBuilder<T extends ColumnBuilderBaseConfig<'boolean', 'PgBoolean'>> extends PgColumnBuilder<T> {
  14. static readonly [entityKind]: string;
  15. constructor(name: T['name']);
  16. }
  17. export declare class PgBoolean<T extends ColumnBaseConfig<'boolean', 'PgBoolean'>> extends PgColumn<T> {
  18. static readonly [entityKind]: string;
  19. getSQLType(): string;
  20. }
  21. export declare function boolean(): PgBooleanBuilderInitial<''>;
  22. export declare function boolean<TName extends string>(name: TName): PgBooleanBuilderInitial<TName>;