sequence.d.cts 757 B

123456789101112131415161718
  1. import { entityKind } from "../entity.cjs";
  2. export type PgSequenceOptions = {
  3. increment?: number | string;
  4. minValue?: number | string;
  5. maxValue?: number | string;
  6. startWith?: number | string;
  7. cache?: number | string;
  8. cycle?: boolean;
  9. };
  10. export declare class PgSequence {
  11. readonly seqName: string | undefined;
  12. readonly seqOptions: PgSequenceOptions | undefined;
  13. readonly schema: string | undefined;
  14. static readonly [entityKind]: string;
  15. constructor(seqName: string | undefined, seqOptions: PgSequenceOptions | undefined, schema: string | undefined);
  16. }
  17. export declare function pgSequence(name: string, options?: PgSequenceOptions): PgSequence;
  18. export declare function isPgSequence(obj: unknown): obj is PgSequence;