@dudousxd/nestjs-durable-store-drizzle 0.27.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/pg/index.cjs +568 -454
- package/dist/pg/index.cjs.map +1 -1
- package/dist/pg/index.d.cts +1269 -1223
- package/dist/pg/index.d.ts +1269 -1223
- package/dist/pg/index.js +561 -450
- package/dist/pg/index.js.map +1 -1
- package/package.json +9 -6
package/dist/index.cjs
CHANGED
|
@@ -382,8 +382,11 @@ var DrizzleStateStore = class {
|
|
|
382
382
|
__name(this, "DrizzleStateStore");
|
|
383
383
|
}
|
|
384
384
|
db;
|
|
385
|
-
constructor(db) {
|
|
385
|
+
constructor(db, options = {}) {
|
|
386
386
|
this.db = db;
|
|
387
|
+
if (options.schema !== void 0) {
|
|
388
|
+
throw new Error(`[nestjs-durable] store-drizzle: the schema option (${JSON.stringify(options.schema)}) is not supported on SQLite, which has no schemas. Remove it, or use DrizzlePgStateStore from '@dudousxd/nestjs-durable-store-drizzle/pg'.`);
|
|
389
|
+
}
|
|
387
390
|
}
|
|
388
391
|
async tryAdmitSingleton(runId, tag, workflow, limit, retryWakeAt) {
|
|
389
392
|
return this.db.transaction((tx) => {
|