@lancedb/lancedb 0.41.0-beta.6 → 0.41.0-beta.8
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/blob.d.ts +2 -0
- package/dist/blob.js +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/merge.d.ts +5 -5
- package/dist/merge.js +6 -6
- package/dist/native.d.ts +96 -90
- package/dist/native.js +52 -52
- package/dist/query.d.ts +57 -11
- package/dist/query.js +135 -27
- package/dist/table.d.ts +53 -46
- package/dist/table.js +24 -18
- package/package.json +8 -8
package/dist/native.js
CHANGED
|
@@ -76,8 +76,8 @@ function requireNative() {
|
|
|
76
76
|
try {
|
|
77
77
|
const binding = require('@lancedb/lancedb-android-arm64');
|
|
78
78
|
const bindingPackageVersion = require('@lancedb/lancedb-android-arm64/package.json').version;
|
|
79
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
80
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
79
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
80
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
81
81
|
}
|
|
82
82
|
return binding;
|
|
83
83
|
}
|
|
@@ -95,8 +95,8 @@ function requireNative() {
|
|
|
95
95
|
try {
|
|
96
96
|
const binding = require('@lancedb/lancedb-android-arm-eabi');
|
|
97
97
|
const bindingPackageVersion = require('@lancedb/lancedb-android-arm-eabi/package.json').version;
|
|
98
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
99
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
98
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
99
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
100
100
|
}
|
|
101
101
|
return binding;
|
|
102
102
|
}
|
|
@@ -120,8 +120,8 @@ function requireNative() {
|
|
|
120
120
|
try {
|
|
121
121
|
const binding = require('@lancedb/lancedb-win32-x64-gnu');
|
|
122
122
|
const bindingPackageVersion = require('@lancedb/lancedb-win32-x64-gnu/package.json').version;
|
|
123
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
124
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
123
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
124
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
125
125
|
}
|
|
126
126
|
return binding;
|
|
127
127
|
}
|
|
@@ -139,8 +139,8 @@ function requireNative() {
|
|
|
139
139
|
try {
|
|
140
140
|
const binding = require('@lancedb/lancedb-win32-x64-msvc');
|
|
141
141
|
const bindingPackageVersion = require('@lancedb/lancedb-win32-x64-msvc/package.json').version;
|
|
142
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
143
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
142
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
143
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
144
144
|
}
|
|
145
145
|
return binding;
|
|
146
146
|
}
|
|
@@ -159,8 +159,8 @@ function requireNative() {
|
|
|
159
159
|
try {
|
|
160
160
|
const binding = require('@lancedb/lancedb-win32-ia32-msvc');
|
|
161
161
|
const bindingPackageVersion = require('@lancedb/lancedb-win32-ia32-msvc/package.json').version;
|
|
162
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
163
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
162
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
163
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
164
164
|
}
|
|
165
165
|
return binding;
|
|
166
166
|
}
|
|
@@ -178,8 +178,8 @@ function requireNative() {
|
|
|
178
178
|
try {
|
|
179
179
|
const binding = require('@lancedb/lancedb-win32-arm64-msvc');
|
|
180
180
|
const bindingPackageVersion = require('@lancedb/lancedb-win32-arm64-msvc/package.json').version;
|
|
181
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
182
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
181
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
182
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
183
183
|
}
|
|
184
184
|
return binding;
|
|
185
185
|
}
|
|
@@ -201,8 +201,8 @@ function requireNative() {
|
|
|
201
201
|
try {
|
|
202
202
|
const binding = require('@lancedb/lancedb-darwin-universal');
|
|
203
203
|
const bindingPackageVersion = require('@lancedb/lancedb-darwin-universal/package.json').version;
|
|
204
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
205
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
204
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
205
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
206
206
|
}
|
|
207
207
|
return binding;
|
|
208
208
|
}
|
|
@@ -219,8 +219,8 @@ function requireNative() {
|
|
|
219
219
|
try {
|
|
220
220
|
const binding = require('@lancedb/lancedb-darwin-x64');
|
|
221
221
|
const bindingPackageVersion = require('@lancedb/lancedb-darwin-x64/package.json').version;
|
|
222
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
223
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
222
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
223
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
224
224
|
}
|
|
225
225
|
return binding;
|
|
226
226
|
}
|
|
@@ -238,8 +238,8 @@ function requireNative() {
|
|
|
238
238
|
try {
|
|
239
239
|
const binding = require('@lancedb/lancedb-darwin-arm64');
|
|
240
240
|
const bindingPackageVersion = require('@lancedb/lancedb-darwin-arm64/package.json').version;
|
|
241
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
242
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
241
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
242
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
243
243
|
}
|
|
244
244
|
return binding;
|
|
245
245
|
}
|
|
@@ -262,8 +262,8 @@ function requireNative() {
|
|
|
262
262
|
try {
|
|
263
263
|
const binding = require('@lancedb/lancedb-freebsd-x64');
|
|
264
264
|
const bindingPackageVersion = require('@lancedb/lancedb-freebsd-x64/package.json').version;
|
|
265
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
266
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
265
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
266
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
267
267
|
}
|
|
268
268
|
return binding;
|
|
269
269
|
}
|
|
@@ -281,8 +281,8 @@ function requireNative() {
|
|
|
281
281
|
try {
|
|
282
282
|
const binding = require('@lancedb/lancedb-freebsd-arm64');
|
|
283
283
|
const bindingPackageVersion = require('@lancedb/lancedb-freebsd-arm64/package.json').version;
|
|
284
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
285
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
284
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
285
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
286
286
|
}
|
|
287
287
|
return binding;
|
|
288
288
|
}
|
|
@@ -306,8 +306,8 @@ function requireNative() {
|
|
|
306
306
|
try {
|
|
307
307
|
const binding = require('@lancedb/lancedb-linux-x64-musl');
|
|
308
308
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-x64-musl/package.json').version;
|
|
309
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
310
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
309
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
310
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
311
311
|
}
|
|
312
312
|
return binding;
|
|
313
313
|
}
|
|
@@ -325,8 +325,8 @@ function requireNative() {
|
|
|
325
325
|
try {
|
|
326
326
|
const binding = require('@lancedb/lancedb-linux-x64-gnu');
|
|
327
327
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-x64-gnu/package.json').version;
|
|
328
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
329
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
328
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
329
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
330
330
|
}
|
|
331
331
|
return binding;
|
|
332
332
|
}
|
|
@@ -346,8 +346,8 @@ function requireNative() {
|
|
|
346
346
|
try {
|
|
347
347
|
const binding = require('@lancedb/lancedb-linux-arm64-musl');
|
|
348
348
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-arm64-musl/package.json').version;
|
|
349
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
350
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
349
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
350
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
351
351
|
}
|
|
352
352
|
return binding;
|
|
353
353
|
}
|
|
@@ -365,8 +365,8 @@ function requireNative() {
|
|
|
365
365
|
try {
|
|
366
366
|
const binding = require('@lancedb/lancedb-linux-arm64-gnu');
|
|
367
367
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-arm64-gnu/package.json').version;
|
|
368
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
369
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
368
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
369
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
370
370
|
}
|
|
371
371
|
return binding;
|
|
372
372
|
}
|
|
@@ -386,8 +386,8 @@ function requireNative() {
|
|
|
386
386
|
try {
|
|
387
387
|
const binding = require('@lancedb/lancedb-linux-arm-musleabihf');
|
|
388
388
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-arm-musleabihf/package.json').version;
|
|
389
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
390
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
389
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
390
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
391
391
|
}
|
|
392
392
|
return binding;
|
|
393
393
|
}
|
|
@@ -405,8 +405,8 @@ function requireNative() {
|
|
|
405
405
|
try {
|
|
406
406
|
const binding = require('@lancedb/lancedb-linux-arm-gnueabihf');
|
|
407
407
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-arm-gnueabihf/package.json').version;
|
|
408
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
409
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
408
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
409
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
410
410
|
}
|
|
411
411
|
return binding;
|
|
412
412
|
}
|
|
@@ -426,8 +426,8 @@ function requireNative() {
|
|
|
426
426
|
try {
|
|
427
427
|
const binding = require('@lancedb/lancedb-linux-loong64-musl');
|
|
428
428
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-loong64-musl/package.json').version;
|
|
429
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
430
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
429
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
430
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
431
431
|
}
|
|
432
432
|
return binding;
|
|
433
433
|
}
|
|
@@ -445,8 +445,8 @@ function requireNative() {
|
|
|
445
445
|
try {
|
|
446
446
|
const binding = require('@lancedb/lancedb-linux-loong64-gnu');
|
|
447
447
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-loong64-gnu/package.json').version;
|
|
448
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
449
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
448
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
449
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
450
450
|
}
|
|
451
451
|
return binding;
|
|
452
452
|
}
|
|
@@ -466,8 +466,8 @@ function requireNative() {
|
|
|
466
466
|
try {
|
|
467
467
|
const binding = require('@lancedb/lancedb-linux-riscv64-musl');
|
|
468
468
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-riscv64-musl/package.json').version;
|
|
469
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
470
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
469
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
470
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
471
471
|
}
|
|
472
472
|
return binding;
|
|
473
473
|
}
|
|
@@ -485,8 +485,8 @@ function requireNative() {
|
|
|
485
485
|
try {
|
|
486
486
|
const binding = require('@lancedb/lancedb-linux-riscv64-gnu');
|
|
487
487
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-riscv64-gnu/package.json').version;
|
|
488
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
489
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
488
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
489
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
490
490
|
}
|
|
491
491
|
return binding;
|
|
492
492
|
}
|
|
@@ -505,8 +505,8 @@ function requireNative() {
|
|
|
505
505
|
try {
|
|
506
506
|
const binding = require('@lancedb/lancedb-linux-ppc64-gnu');
|
|
507
507
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-ppc64-gnu/package.json').version;
|
|
508
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
509
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
508
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
509
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
510
510
|
}
|
|
511
511
|
return binding;
|
|
512
512
|
}
|
|
@@ -524,8 +524,8 @@ function requireNative() {
|
|
|
524
524
|
try {
|
|
525
525
|
const binding = require('@lancedb/lancedb-linux-s390x-gnu');
|
|
526
526
|
const bindingPackageVersion = require('@lancedb/lancedb-linux-s390x-gnu/package.json').version;
|
|
527
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
528
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
527
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
528
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
529
529
|
}
|
|
530
530
|
return binding;
|
|
531
531
|
}
|
|
@@ -548,8 +548,8 @@ function requireNative() {
|
|
|
548
548
|
try {
|
|
549
549
|
const binding = require('@lancedb/lancedb-openharmony-arm64');
|
|
550
550
|
const bindingPackageVersion = require('@lancedb/lancedb-openharmony-arm64/package.json').version;
|
|
551
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
552
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
551
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
552
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
553
553
|
}
|
|
554
554
|
return binding;
|
|
555
555
|
}
|
|
@@ -567,8 +567,8 @@ function requireNative() {
|
|
|
567
567
|
try {
|
|
568
568
|
const binding = require('@lancedb/lancedb-openharmony-x64');
|
|
569
569
|
const bindingPackageVersion = require('@lancedb/lancedb-openharmony-x64/package.json').version;
|
|
570
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
571
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
570
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
571
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
572
572
|
}
|
|
573
573
|
return binding;
|
|
574
574
|
}
|
|
@@ -586,8 +586,8 @@ function requireNative() {
|
|
|
586
586
|
try {
|
|
587
587
|
const binding = require('@lancedb/lancedb-openharmony-arm');
|
|
588
588
|
const bindingPackageVersion = require('@lancedb/lancedb-openharmony-arm/package.json').version;
|
|
589
|
-
if (bindingPackageVersion !== '0.41.0-beta.
|
|
590
|
-
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.
|
|
589
|
+
if (bindingPackageVersion !== '0.41.0-beta.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
590
|
+
throw new Error(`Native binding package version mismatch, expected 0.41.0-beta.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
|
|
591
591
|
}
|
|
592
592
|
return binding;
|
|
593
593
|
}
|
package/dist/query.d.ts
CHANGED
|
@@ -3,6 +3,21 @@ import { type IvfPqOptions } from "./indices";
|
|
|
3
3
|
import { JsFullTextQuery, RecordBatchIterator as NativeBatchIterator, Query as NativeQuery, Table as NativeTable, TakeQuery as NativeTakeQuery, VectorQuery as NativeVectorQuery } from "./native";
|
|
4
4
|
import { Reranker } from "./rerankers";
|
|
5
5
|
export declare function RecordBatchIterator(promisedInner: Promise<NativeBatchIterator>): AsyncGenerator<RecordBatch<any>, void, unknown>;
|
|
6
|
+
/**
|
|
7
|
+
* How a query returns blob v2 columns. See {@link QueryExecutionOptions.blobMode}.
|
|
8
|
+
*/
|
|
9
|
+
export type BlobMode = "descriptions" | "bytes";
|
|
10
|
+
/**
|
|
11
|
+
* The table a query reads, and the parts of the query that decide which blob
|
|
12
|
+
* columns `blobMode: "bytes"` fills in.
|
|
13
|
+
*
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export interface QueryBlobContext {
|
|
17
|
+
table: NativeTable;
|
|
18
|
+
withRowId: boolean;
|
|
19
|
+
projection?: [string, string][];
|
|
20
|
+
}
|
|
6
21
|
/**
|
|
7
22
|
* Options that control the behavior of a particular query execution
|
|
8
23
|
*/
|
|
@@ -18,6 +33,31 @@ export interface QueryExecutionOptions {
|
|
|
18
33
|
* Timeout for query execution in milliseconds
|
|
19
34
|
*/
|
|
20
35
|
timeoutMs?: number;
|
|
36
|
+
/**
|
|
37
|
+
* How to return blob v2 columns. Applies to `toArrow()` and `toArray()`.
|
|
38
|
+
*
|
|
39
|
+
* - `"descriptions"` (default): each blob is a descriptor. Read the bytes
|
|
40
|
+
* with {@link Table.fetchBlobs} or {@link Table.fetchBlobFiles}.
|
|
41
|
+
* - `"bytes"`: each top-level blob column holds the blob bytes as
|
|
42
|
+
* `LargeBinary`. The query also reads `_rowid` to fetch the bytes, and
|
|
43
|
+
* leaves it out of the result unless {@link QueryBase.withRowId} was
|
|
44
|
+
* called. All the bytes are held in memory.
|
|
45
|
+
*
|
|
46
|
+
* Blobs nested in a struct or a list keep their descriptors.
|
|
47
|
+
*
|
|
48
|
+
* The rows and the bytes come from the same table version. If the table
|
|
49
|
+
* changes while the query runs, the query runs again, up to three times.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const rows = await table
|
|
54
|
+
* .query()
|
|
55
|
+
* .select(["id", "image"])
|
|
56
|
+
* .toArray({ blobMode: "bytes" });
|
|
57
|
+
* const image: Uint8Array | null = rows[0].image;
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
blobMode?: BlobMode;
|
|
21
61
|
}
|
|
22
62
|
export type AnalyzePlanDistributedMetrics = "aggregate" | "per_worker" | "full";
|
|
23
63
|
export interface ColumnOrdering {
|
|
@@ -49,7 +89,11 @@ export declare class QueryBase<NativeQueryType extends NativeQuery | NativeVecto
|
|
|
49
89
|
/**
|
|
50
90
|
* @hidden
|
|
51
91
|
*/
|
|
52
|
-
protected
|
|
92
|
+
protected blobContext?: QueryBlobContext;
|
|
93
|
+
/**
|
|
94
|
+
* @hidden
|
|
95
|
+
*/
|
|
96
|
+
protected constructor(inner?: NativeQueryType | Promise<NativeQueryType>, blobContext?: QueryBlobContext);
|
|
53
97
|
/**
|
|
54
98
|
* @hidden
|
|
55
99
|
*/
|
|
@@ -102,7 +146,7 @@ export declare class QueryBase<NativeQueryType extends NativeQuery | NativeVecto
|
|
|
102
146
|
/**
|
|
103
147
|
* @hidden
|
|
104
148
|
*/
|
|
105
|
-
protected nativeExecute(options?: Partial<QueryExecutionOptions
|
|
149
|
+
protected nativeExecute(options?: Partial<QueryExecutionOptions>, withRowId?: boolean): Promise<NativeBatchIterator>;
|
|
106
150
|
/**
|
|
107
151
|
* Execute the query and return the results as an @see {@link AsyncIterator}
|
|
108
152
|
* of @see {@link RecordBatch}.
|
|
@@ -125,6 +169,8 @@ export declare class QueryBase<NativeQueryType extends NativeQuery | NativeVecto
|
|
|
125
169
|
* Empty results retain the query's output schema.
|
|
126
170
|
*/
|
|
127
171
|
toArrow(options?: Partial<QueryExecutionOptions>): Promise<ArrowTable>;
|
|
172
|
+
private collect;
|
|
173
|
+
private blobBytesContext;
|
|
128
174
|
/** Collect the results as an array of objects. */
|
|
129
175
|
toArray(options?: Partial<QueryExecutionOptions>): Promise<any[]>;
|
|
130
176
|
/**
|
|
@@ -185,7 +231,7 @@ export declare class QueryBase<NativeQueryType extends NativeQuery | NativeVecto
|
|
|
185
231
|
outputSchema(): Promise<import("./arrow").Schema>;
|
|
186
232
|
}
|
|
187
233
|
export declare class StandardQueryBase<NativeQueryType extends NativeQuery | NativeVectorQuery> extends QueryBase<NativeQueryType> implements ExecutableQuery {
|
|
188
|
-
constructor(inner?: NativeQueryType | Promise<NativeQueryType
|
|
234
|
+
constructor(inner?: NativeQueryType | Promise<NativeQueryType>, blobContext?: QueryBlobContext);
|
|
189
235
|
/**
|
|
190
236
|
* A filter statement to be applied to this query.
|
|
191
237
|
*
|
|
@@ -238,10 +284,10 @@ export declare class StandardQueryBase<NativeQueryType extends NativeQuery | Nat
|
|
|
238
284
|
* Control MemWAL read routing for this query.
|
|
239
285
|
*
|
|
240
286
|
* By default (unset), when the table carries a MemWAL write spec (see
|
|
241
|
-
* {@link Table#
|
|
287
|
+
* {@link Table#enableMemWal}), reads are routed through the LSM scanner so
|
|
242
288
|
* they also return data written via the `mergeInsert` LSM path that has not yet
|
|
243
289
|
* been compacted into the base table (the active/frozen in-memory memtables and
|
|
244
|
-
* the
|
|
290
|
+
* the SSTables), deduplicated by primary key; a table without a spec
|
|
245
291
|
* reads the base table.
|
|
246
292
|
*
|
|
247
293
|
* @param enable - `true` forces the LSM scanner and errors if the table has no
|
|
@@ -250,10 +296,10 @@ export declare class StandardQueryBase<NativeQueryType extends NativeQuery | Nat
|
|
|
250
296
|
*
|
|
251
297
|
* Note: the LSM scanner does not support every query shape (e.g. reranking,
|
|
252
298
|
* hybrid search, `orderBy`). On a MemWAL table those shapes error unless
|
|
253
|
-
* `
|
|
299
|
+
* `useMemWal(false)` is set, because a base-only read would silently exclude
|
|
254
300
|
* un-compacted MemWAL data.
|
|
255
301
|
*/
|
|
256
|
-
|
|
302
|
+
useMemWal(enable: boolean): this;
|
|
257
303
|
}
|
|
258
304
|
/**
|
|
259
305
|
* An interface for a query that can be executed
|
|
@@ -275,7 +321,7 @@ export declare class VectorQuery extends StandardQueryBase<NativeVectorQuery> {
|
|
|
275
321
|
/**
|
|
276
322
|
* @hidden
|
|
277
323
|
*/
|
|
278
|
-
constructor(inner: NativeVectorQuery | Promise<NativeVectorQuery
|
|
324
|
+
constructor(inner: NativeVectorQuery | Promise<NativeVectorQuery>, blobContext?: QueryBlobContext);
|
|
279
325
|
/**
|
|
280
326
|
* @hidden
|
|
281
327
|
*/
|
|
@@ -457,7 +503,7 @@ export declare function createAutoQuery(table: NativeTable, query: string, colum
|
|
|
457
503
|
* @hideconstructor
|
|
458
504
|
*/
|
|
459
505
|
export declare class TakeQuery extends QueryBase<NativeTakeQuery> {
|
|
460
|
-
constructor(inner: NativeTakeQuery);
|
|
506
|
+
constructor(inner: NativeTakeQuery, blobContext?: QueryBlobContext);
|
|
461
507
|
/**
|
|
462
508
|
* Control MemWAL read routing for this take query.
|
|
463
509
|
*
|
|
@@ -467,7 +513,7 @@ export declare class TakeQuery extends QueryBase<NativeTakeQuery> {
|
|
|
467
513
|
*
|
|
468
514
|
* @param enable - `false` reads the base table only.
|
|
469
515
|
*/
|
|
470
|
-
|
|
516
|
+
useMemWal(enable: boolean): this;
|
|
471
517
|
}
|
|
472
518
|
/**
|
|
473
519
|
* A builder for automatic string searches.
|
|
@@ -482,7 +528,7 @@ export declare class AutoQuery extends StandardQueryBase<NativeQuery | NativeVec
|
|
|
482
528
|
private readonly createInner;
|
|
483
529
|
private readonly calls;
|
|
484
530
|
/** @hidden */
|
|
485
|
-
constructor(createInner: () => Promise<NativeQuery | NativeVectorQuery
|
|
531
|
+
constructor(createInner: () => Promise<NativeQuery | NativeVectorQuery>, blobContext?: QueryBlobContext);
|
|
486
532
|
/** @hidden */
|
|
487
533
|
protected doCall(fn: (inner: NativeQuery | NativeVectorQuery) => void): void;
|
|
488
534
|
/** @hidden */
|