@dudousxd/nestjs-durable-store-drizzle 0.28.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 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) => {