@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.
@@ -3,7 +3,7 @@ name: mastra-lance
3
3
  description: Documentation for @mastra/lance. Use when working with @mastra/lance APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/lance"
6
- version: "1.6.0"
6
+ version: "1.6.1-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -19,9 +19,5 @@ Read the individual reference documents for detailed explanations and code examp
19
19
  - [LanceDB](references/integrations-databases-lancedb.md) - Use LanceDB for Mastra application storage and vector operations, configure tables and initialization, and account for its observability limitations.
20
20
  - [Lance](references/integrations-vectors-lance.md) - Store embeddings in LanceDB through Mastra's LanceVectorStore with embedded similarity search for local, S3, and managed cloud deployments.
21
21
 
22
- ### Reference
23
-
24
- - [Storing embeddings in a vector database](references/reference-rag-vector-databases.md) - After generating embeddings, you need to store them in a database that supports vector similarity search.
25
-
26
22
 
27
23
  Read [assets/SOURCE_MAP.json](assets/SOURCE_MAP.json) for source code references.
@@ -1,6 +1,37 @@
1
1
  {
2
- "version": "1.6.0",
2
+ "version": "1.6.1-alpha.0",
3
3
  "package": "@mastra/lance",
4
- "exports": {},
4
+ "exports": {
5
+ "LanceStorage": {
6
+ "types": "dist/storage/index.d.ts",
7
+ "implementation": "dist/index.js",
8
+ "line": 1869
9
+ },
10
+ "LanceVectorStore": {
11
+ "types": "dist/vector/index.d.ts",
12
+ "implementation": "dist/index.js",
13
+ "line": 2201
14
+ },
15
+ "StoreBackgroundTasksLance": {
16
+ "types": "dist/storage/domains/background-tasks/index.d.ts",
17
+ "implementation": "dist/index.js",
18
+ "line": 516
19
+ },
20
+ "StoreMemoryLance": {
21
+ "types": "dist/storage/domains/memory/index.d.ts",
22
+ "implementation": "dist/index.js",
23
+ "line": 656
24
+ },
25
+ "StoreScoresLance": {
26
+ "types": "dist/storage/domains/scores/index.d.ts",
27
+ "implementation": "dist/index.js",
28
+ "line": 1397
29
+ },
30
+ "StoreWorkflowsLance": {
31
+ "types": "dist/storage/domains/workflows/index.d.ts",
32
+ "implementation": "dist/index.js",
33
+ "line": 1662
34
+ }
35
+ },
5
36
  "modules": {}
6
37
  }
package/dist/index.cjs CHANGED
@@ -410,7 +410,7 @@ var LanceDB = class extends _mastra_core_base.MastraBase {
410
410
  validateKeyTypes(keys, tableSchema);
411
411
  const filterConditions = Object.entries(keys).map(([key, value]) => {
412
412
  const quotedKey = /^[a-z][a-zA-Z]*$/.test(key) && /[A-Z]/.test(key) ? `\`${key}\`` : key;
413
- if (typeof value === "string") return `${quotedKey} = '${value}'`;
413
+ if (typeof value === "string") return `${quotedKey} = '${value.replaceAll("'", "''")}'`;
414
414
  else if (value === null) return `${quotedKey} IS NULL`;
415
415
  return `${quotedKey} = ${value}`;
416
416
  }).join(" AND ");