@mastra/lance 1.6.0 → 1.6.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.
- package/dist/docs/SKILL.md +1 -5
- package/dist/docs/assets/SOURCE_MAP.json +33 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/dist/docs/references/reference-rag-vector-databases.md +0 -808
package/dist/index.js
CHANGED
|
@@ -409,7 +409,7 @@ var LanceDB = class extends MastraBase {
|
|
|
409
409
|
validateKeyTypes(keys, tableSchema);
|
|
410
410
|
const filterConditions = Object.entries(keys).map(([key, value]) => {
|
|
411
411
|
const quotedKey = /^[a-z][a-zA-Z]*$/.test(key) && /[A-Z]/.test(key) ? `\`${key}\`` : key;
|
|
412
|
-
if (typeof value === "string") return `${quotedKey} = '${value}'`;
|
|
412
|
+
if (typeof value === "string") return `${quotedKey} = '${value.replaceAll("'", "''")}'`;
|
|
413
413
|
else if (value === null) return `${quotedKey} IS NULL`;
|
|
414
414
|
return `${quotedKey} = ${value}`;
|
|
415
415
|
}).join(" AND ");
|