Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
25 lines
617 B
Plaintext
25 lines
617 B
Plaintext
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 |