@mastra/duckdb 1.13.0-alpha.3 → 1.14.0-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.
@@ -3034,6 +3034,13 @@ function compileScalarPredicate(predicate, registry, allowMetadata = false) {
3034
3034
  ]
3035
3035
  };
3036
3036
  }
3037
+ if (predicate.type === "text") {
3038
+ const found = `contains(${`' ' || replace(lower(regexp_replace(nfc_normalize(${field.sql}), '[^\\p{L}\\p{M}\\p{N}]+', ' ', 'g')), 'ς', 'σ') || ' '`}, ?)`;
3039
+ return {
3040
+ sql: `coalesce(${predicate.operator === "matches" ? found : `NOT ${found}`}, false)`,
3041
+ values: [...fieldValues, ` ${predicate.value} `]
3042
+ };
3043
+ }
3037
3044
  if (predicate.type === "membership") {
3038
3045
  const list = predicate.values.map(() => parameterSql(field.parameterType)).join(", ");
3039
3046
  if (predicate.operator === "in") return {
@@ -5724,4 +5731,4 @@ var ObservabilityStorageDuckDB = class ObservabilityStorageDuckDB extends _mastr
5724
5731
  //#endregion
5725
5732
  exports.ObservabilityStorageDuckDB = ObservabilityStorageDuckDB;
5726
5733
 
5727
- //# sourceMappingURL=observability-DBm19qBS.cjs.map
5734
+ //# sourceMappingURL=observability-DJafBDSz.cjs.map