timestamptz.d.ts 1.2 KB

123456789101112131415161718192021222324252627
  1. import type { ColumnBuilderBaseConfig } from "../../column-builder.js";
  2. import type { ColumnBaseConfig } from "../../column.js";
  3. import { entityKind } from "../../entity.js";
  4. import type { AnyGelTable } from "../table.js";
  5. import { GelColumn } from "./common.js";
  6. import { GelLocalDateColumnBaseBuilder } from "./date.common.js";
  7. export type GelTimestampTzBuilderInitial<TName extends string> = GelTimestampTzBuilder<{
  8. name: TName;
  9. dataType: 'date';
  10. columnType: 'GelTimestampTz';
  11. data: Date;
  12. driverParam: Date;
  13. enumValues: undefined;
  14. }>;
  15. export declare class GelTimestampTzBuilder<T extends ColumnBuilderBaseConfig<'date', 'GelTimestampTz'>> extends GelLocalDateColumnBaseBuilder<T> {
  16. static readonly [entityKind]: string;
  17. constructor(name: T['name']);
  18. }
  19. export declare class GelTimestampTz<T extends ColumnBaseConfig<'date', 'GelTimestampTz'>> extends GelColumn<T> {
  20. static readonly [entityKind]: string;
  21. constructor(table: AnyGelTable<{
  22. name: T['tableName'];
  23. }>, config: GelTimestampTzBuilder<T>['config']);
  24. getSQLType(): string;
  25. }
  26. export declare function timestamptz(): GelTimestampTzBuilderInitial<''>;
  27. export declare function timestamptz<TName extends string>(name: TName): GelTimestampTzBuilderInitial<TName>;