@mastra/duckdb 1.3.0 → 1.3.1-alpha.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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkS2AWBPTS_cjs = require('./chunk-S2AWBPTS.cjs');
3
+ var chunkSMRZJTCI_cjs = require('./chunk-SMRZJTCI.cjs');
4
4
  var error = require('@mastra/core/error');
5
5
  var storage = require('@mastra/core/storage');
6
6
  var observability = require('@mastra/core/observability');
@@ -565,10 +565,10 @@ function buildPaginationClause(pagination) {
565
565
  }
566
566
 
567
567
  // src/storage/domains/observability/helpers.ts
568
- var v = chunkS2AWBPTS_cjs.DuckDBConnection.sqlValue;
568
+ var v = chunkSMRZJTCI_cjs.DuckDBConnection.sqlValue;
569
569
  function jsonV(val) {
570
570
  if (val === null || val === void 0) return "NULL";
571
- return chunkS2AWBPTS_cjs.DuckDBConnection.sqlValue(JSON.stringify(val));
571
+ return chunkSMRZJTCI_cjs.DuckDBConnection.sqlValue(JSON.stringify(val));
572
572
  }
573
573
  function toDate(val) {
574
574
  if (val === null || val === void 0) {
@@ -2951,12 +2951,7 @@ var ObservabilityStorageDuckDB = class extends storage.ObservabilityStorage {
2951
2951
  })
2952
2952
  });
2953
2953
  }
2954
- for (const ddl of ALL_DDL) {
2955
- await this.db.execute(ddl);
2956
- }
2957
- for (const migration of ALL_MIGRATIONS) {
2958
- await this.db.execute(migration);
2959
- }
2954
+ await this.db.executeBatch([...ALL_DDL, ...ALL_MIGRATIONS]);
2960
2955
  }
2961
2956
  /**
2962
2957
  * Manually migrate legacy signal tables to the signal-ID primary-key schema.
@@ -3126,5 +3121,5 @@ var ObservabilityStorageDuckDB = class extends storage.ObservabilityStorage {
3126
3121
  };
3127
3122
 
3128
3123
  exports.ObservabilityStorageDuckDB = ObservabilityStorageDuckDB;
3129
- //# sourceMappingURL=observability-2PJ44OVC.cjs.map
3130
- //# sourceMappingURL=observability-2PJ44OVC.cjs.map
3124
+ //# sourceMappingURL=observability-ZLFGMOSM.cjs.map
3125
+ //# sourceMappingURL=observability-ZLFGMOSM.cjs.map