@lancedb/lancedb 0.41.0-beta.7 → 0.41.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/CONTRIBUTING.md +13 -0
- package/dist/arrow.d.ts +1 -0
- package/dist/arrow.js +16 -5
- package/dist/blob.d.ts +24 -1
- package/dist/blob.js +56 -5
- package/dist/catalog.d.ts +6 -1
- package/dist/catalog.js +6 -2
- package/dist/connection.d.ts +26 -79
- package/dist/connection.js +28 -26
- package/dist/embedding/transformers.js +4 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -5
- package/dist/indices.d.ts +2 -1
- package/dist/job.d.ts +8 -5
- package/dist/job.js +8 -5
- package/dist/materialized_view.d.ts +7 -3
- package/dist/materialized_view.js +7 -4
- package/dist/merge.d.ts +7 -7
- package/dist/merge.js +8 -8
- package/dist/native.d.ts +128 -129
- package/dist/native.js +53 -52
- package/dist/query.d.ts +68 -20
- package/dist/query.js +181 -36
- package/dist/table.d.ts +64 -55
- package/dist/table.js +26 -20
- package/package.json +10 -9
package/dist/table.js
CHANGED
|
@@ -161,10 +161,16 @@ class LocalTable extends Table {
|
|
|
161
161
|
await this.inner.waitForIndex(indexNames, timeoutSeconds);
|
|
162
162
|
}
|
|
163
163
|
takeOffsets(offsets) {
|
|
164
|
-
return new query_1.TakeQuery(this.inner.takeOffsets(offsets)
|
|
164
|
+
return new query_1.TakeQuery(this.inner.takeOffsets(offsets), {
|
|
165
|
+
table: this.inner,
|
|
166
|
+
withRowId: false,
|
|
167
|
+
});
|
|
165
168
|
}
|
|
166
169
|
takeRowIds(rowIds) {
|
|
167
|
-
return new query_1.TakeQuery(this.inner.takeRowIds(rowIdsToBigInts(rowIds))
|
|
170
|
+
return new query_1.TakeQuery(this.inner.takeRowIds(rowIdsToBigInts(rowIds)), {
|
|
171
|
+
table: this.inner,
|
|
172
|
+
withRowId: false,
|
|
173
|
+
});
|
|
168
174
|
}
|
|
169
175
|
blobColumns() {
|
|
170
176
|
return this.inner.blobColumns();
|
|
@@ -280,8 +286,8 @@ class LocalTable extends Table {
|
|
|
280
286
|
(0, materialized_view_1.validateNonNegativeInteger)(options?.limit, "limit");
|
|
281
287
|
return await this.inner.functionErrors(options);
|
|
282
288
|
}
|
|
283
|
-
async refreshMaterializedView(sourceVersion) {
|
|
284
|
-
return await this.inner.refreshMaterializedView(sourceVersion);
|
|
289
|
+
async refreshMaterializedView(sourceVersion, full) {
|
|
290
|
+
return await this.inner.refreshMaterializedView(sourceVersion, full);
|
|
285
291
|
}
|
|
286
292
|
async materializedViewDefinition() {
|
|
287
293
|
return await this.inner.materializedViewDefinition();
|
|
@@ -320,32 +326,32 @@ class LocalTable extends Table {
|
|
|
320
326
|
const cols = typeof columns === "string" ? [columns] : columns;
|
|
321
327
|
return await this.inner.setUnenforcedPrimaryKey(cols);
|
|
322
328
|
}
|
|
323
|
-
async
|
|
324
|
-
return await this.inner.
|
|
329
|
+
async enableRTE(spec) {
|
|
330
|
+
return await this.inner.enableRTE(spec);
|
|
325
331
|
}
|
|
326
|
-
async
|
|
327
|
-
return await this.inner.
|
|
332
|
+
async disableRTE() {
|
|
333
|
+
return await this.inner.disableRTE();
|
|
328
334
|
}
|
|
329
|
-
async
|
|
335
|
+
async getRTESpec() {
|
|
330
336
|
// The native binding types `specType` as a plain `string`; narrow it back
|
|
331
337
|
// to the public union. The Rust `From` impl only ever emits one of the
|
|
332
338
|
// three valid values, so the cast is safe.
|
|
333
|
-
return ((await this.inner.
|
|
339
|
+
return ((await this.inner.getRTESpec()) ?? undefined);
|
|
334
340
|
}
|
|
335
|
-
async
|
|
336
|
-
return await this.inner.
|
|
341
|
+
async closeRTEWriters() {
|
|
342
|
+
return await this.inner.closeRTEWriters();
|
|
337
343
|
}
|
|
338
|
-
async
|
|
339
|
-
return await this.inner.
|
|
344
|
+
async flushRTE() {
|
|
345
|
+
return await this.inner.flushRTE();
|
|
340
346
|
}
|
|
341
|
-
async
|
|
342
|
-
return await this.inner.
|
|
347
|
+
async compactRTE() {
|
|
348
|
+
return await this.inner.compactRTE();
|
|
343
349
|
}
|
|
344
|
-
async
|
|
345
|
-
return await this.inner.
|
|
350
|
+
async checkpointRTE() {
|
|
351
|
+
return await this.inner.checkpointRTE();
|
|
346
352
|
}
|
|
347
|
-
async
|
|
348
|
-
return (await this.inner.
|
|
353
|
+
async getRTEStats(includeSstableRows = false) {
|
|
354
|
+
return (await this.inner.getRTEStats(includeSstableRows)) ?? undefined;
|
|
349
355
|
}
|
|
350
356
|
async version() {
|
|
351
357
|
return await this.inner.version();
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"ann"
|
|
12
12
|
],
|
|
13
13
|
"private": false,
|
|
14
|
-
"version": "0.41.0
|
|
14
|
+
"version": "0.41.0",
|
|
15
15
|
"main": "dist/index.js",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": "./dist/index.js",
|
|
@@ -97,7 +97,8 @@
|
|
|
97
97
|
"postdocs": "node typedoc_post_process.js",
|
|
98
98
|
"lint": "biome check . && biome format .",
|
|
99
99
|
"lint-fix": "biome check --write . && biome format --write .",
|
|
100
|
-
"
|
|
100
|
+
"check:native-symbols": "node scripts/check-native-symbols.js",
|
|
101
|
+
"prepublishOnly": "pnpm check:native-symbols && napi prepublish -t npm",
|
|
101
102
|
"test": "jest --verbose",
|
|
102
103
|
"integration": "S3_TEST=1 pnpm test",
|
|
103
104
|
"universal": "napi universalize",
|
|
@@ -110,13 +111,13 @@
|
|
|
110
111
|
"optionalDependencies": {
|
|
111
112
|
"@huggingface/transformers": "3.0.2",
|
|
112
113
|
"openai": "4.29.2",
|
|
113
|
-
"@lancedb/lancedb-darwin-arm64": "0.41.0
|
|
114
|
-
"@lancedb/lancedb-linux-x64-gnu": "0.41.0
|
|
115
|
-
"@lancedb/lancedb-linux-arm64-gnu": "0.41.0
|
|
116
|
-
"@lancedb/lancedb-linux-x64-musl": "0.41.0
|
|
117
|
-
"@lancedb/lancedb-linux-arm64-musl": "0.41.0
|
|
118
|
-
"@lancedb/lancedb-win32-x64-msvc": "0.41.0
|
|
119
|
-
"@lancedb/lancedb-win32-arm64-msvc": "0.41.0
|
|
114
|
+
"@lancedb/lancedb-darwin-arm64": "0.41.0",
|
|
115
|
+
"@lancedb/lancedb-linux-x64-gnu": "0.41.0",
|
|
116
|
+
"@lancedb/lancedb-linux-arm64-gnu": "0.41.0",
|
|
117
|
+
"@lancedb/lancedb-linux-x64-musl": "0.41.0",
|
|
118
|
+
"@lancedb/lancedb-linux-arm64-musl": "0.41.0",
|
|
119
|
+
"@lancedb/lancedb-win32-x64-msvc": "0.41.0",
|
|
120
|
+
"@lancedb/lancedb-win32-arm64-msvc": "0.41.0"
|
|
120
121
|
},
|
|
121
122
|
"peerDependencies": {
|
|
122
123
|
"@types/node": ">=22",
|