Files
Gemini-Search/node_modules/drizzle-orm/pg-core/sequence.js
Ammaar Reshi d6025af146 Initial commit
2025-01-04 14:06:53 +00:00

25 lines
617 B
JavaScript

import { entityKind, is } from "../entity.js";
class PgSequence {
constructor(seqName, seqOptions, schema) {
this.seqName = seqName;
this.seqOptions = seqOptions;
this.schema = schema;
}
static [entityKind] = "PgSequence";
}
function pgSequence(name, options) {
return pgSequenceWithSchema(name, options, void 0);
}
function pgSequenceWithSchema(name, options, schema) {
return new PgSequence(name, options, schema);
}
function isPgSequence(obj) {
return is(obj, PgSequence);
}
export {
PgSequence,
isPgSequence,
pgSequence,
pgSequenceWithSchema
};
//# sourceMappingURL=sequence.js.map