@mastra/oracledb 0.2.2 → 0.2.3-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.
package/dist/index.js CHANGED
@@ -6393,6 +6393,14 @@ async function batchDeleteTraces(db, schemaName, args) {
6393
6393
  type: oracledb.STRING,
6394
6394
  maxSize: 512
6395
6395
  } } });
6396
+ try {
6397
+ await client.executeMany(`DELETE FROM ${qualifyName(TABLE_SCORERS, schemaName)} WHERE ${scoreCol("traceId")} = :traceId`, args.traceIds.map((traceId) => ({ traceId })), { bindDefs: { traceId: {
6398
+ type: oracledb.STRING,
6399
+ maxSize: 512
6400
+ } } });
6401
+ } catch (error) {
6402
+ if (!isOracleErrorCode(error, [-942])) throw error;
6403
+ }
6396
6404
  });
6397
6405
  } catch (error) {
6398
6406
  throw storageError("BATCH_DELETE_TRACES", "FAILED", { count: args.traceIds.length }, error, ErrorCategory.USER);
@@ -6751,6 +6759,7 @@ var ObservabilityOracle = class ObservabilityOracle extends ObservabilityStorage
6751
6759
  return batchUpdateSpans(this.db, this.schemaName, args);
6752
6760
  }
6753
6761
  async batchDeleteTraces(args) {
6762
+ this.assertUnscopedBatchDeleteTraces(args);
6754
6763
  return batchDeleteTraces(this.db, this.schemaName, args);
6755
6764
  }
6756
6765
  async listTraces(args) {