Files
Ammaar Reshi d6025af146 Initial commit
2025-01-04 14:06:53 +00:00

19 lines
756 B
TypeScript

import { entityKind } from "../entity.js";
export type PgSequenceOptions = {
increment?: number | string;
minValue?: number | string;
maxValue?: number | string;
startWith?: number | string;
cache?: number | string;
cycle?: boolean;
};
export declare class PgSequence {
readonly seqName: string | undefined;
readonly seqOptions: PgSequenceOptions | undefined;
readonly schema: string | undefined;
static readonly [entityKind]: string;
constructor(seqName: string | undefined, seqOptions: PgSequenceOptions | undefined, schema: string | undefined);
}
export declare function pgSequence(name: string, options?: PgSequenceOptions): PgSequence;
export declare function isPgSequence(obj: unknown): obj is PgSequence;