@lancedb/lancedb 0.40.0 → 0.41.0-beta.10

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/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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
79
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
98
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
123
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
142
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
181
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
204
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
222
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
241
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
265
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
284
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
309
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
328
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
349
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
368
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
389
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
408
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
429
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
448
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
469
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
488
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
508
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
527
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
551
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
570
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 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.40.0' && 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.40.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
589
+ if (bindingPackageVersion !== '0.41.0-beta.10' && 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.10 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
591
591
  }
592
592
  return binding;
593
593
  }
@@ -666,10 +666,13 @@ module.exports.BranchContents = nativeBinding.BranchContents;
666
666
  module.exports.Branches = nativeBinding.Branches;
667
667
  module.exports.Catalog = nativeBinding.Catalog;
668
668
  module.exports.Connection = nativeBinding.Connection;
669
+ module.exports.DatabaseNames = nativeBinding.DatabaseNames;
669
670
  module.exports.Index = nativeBinding.Index;
670
671
  module.exports.Job = nativeBinding.Job;
672
+ module.exports.JobListing = nativeBinding.JobListing;
671
673
  module.exports.JsFullTextQuery = nativeBinding.JsFullTextQuery;
672
674
  module.exports.JsHeaderProvider = nativeBinding.JsHeaderProvider;
675
+ module.exports.NameListing = nativeBinding.NameListing;
673
676
  module.exports.NapiScannable = nativeBinding.NapiScannable;
674
677
  module.exports.NativeMergeInsertBuilder = nativeBinding.NativeMergeInsertBuilder;
675
678
  module.exports.OAuthSession = nativeBinding.OAuthSession;
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 constructor(inner?: NativeQueryType | Promise<NativeQueryType>);
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>): Promise<NativeBatchIterator>;
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}.
@@ -119,8 +163,14 @@ export declare class QueryBase<NativeQueryType extends NativeQuery | NativeVecto
119
163
  * @hidden
120
164
  */
121
165
  [Symbol.asyncIterator](): AsyncIterator<RecordBatch<any>>;
122
- /** Collect the results as an Arrow @see {@link ArrowTable}. */
166
+ /**
167
+ * Collect the results as an Arrow @see {@link ArrowTable}.
168
+ *
169
+ * Empty results retain the query's output schema.
170
+ */
123
171
  toArrow(options?: Partial<QueryExecutionOptions>): Promise<ArrowTable>;
172
+ private collect;
173
+ private blobBytesContext;
124
174
  /** Collect the results as an array of objects. */
125
175
  toArray(options?: Partial<QueryExecutionOptions>): Promise<any[]>;
126
176
  /**
@@ -181,7 +231,7 @@ export declare class QueryBase<NativeQueryType extends NativeQuery | NativeVecto
181
231
  outputSchema(): Promise<import("./arrow").Schema>;
182
232
  }
183
233
  export declare class StandardQueryBase<NativeQueryType extends NativeQuery | NativeVectorQuery> extends QueryBase<NativeQueryType> implements ExecutableQuery {
184
- constructor(inner?: NativeQueryType | Promise<NativeQueryType>);
234
+ constructor(inner?: NativeQueryType | Promise<NativeQueryType>, blobContext?: QueryBlobContext);
185
235
  /**
186
236
  * A filter statement to be applied to this query.
187
237
  *
@@ -231,25 +281,25 @@ export declare class StandardQueryBase<NativeQueryType extends NativeQuery | Nat
231
281
  */
232
282
  fastSearch(): this;
233
283
  /**
234
- * Control MemWAL read routing for this query.
284
+ * Control RTE read routing for this query.
235
285
  *
236
- * By default (unset), when the table carries a MemWAL write spec (see
237
- * {@link Table#setLsmWriteSpec}), reads are routed through the LSM scanner so
286
+ * By default (unset), when the table carries an RTE write spec (see
287
+ * {@link Table#enableRTE}), reads are routed through the LSM scanner so
238
288
  * they also return data written via the `mergeInsert` LSM path that has not yet
239
289
  * been compacted into the base table (the active/frozen in-memory memtables and
240
- * the flushed generations), deduplicated by primary key; a table without a spec
290
+ * the SSTables), deduplicated by primary key; a table without a spec
241
291
  * reads the base table.
242
292
  *
243
293
  * @param enable - `true` forces the LSM scanner and errors if the table has no
244
- * MemWAL write spec. `false` bypasses the MemWAL and reads the base table only,
294
+ * RTE write spec. `false` bypasses the RTE and reads the base table only,
245
295
  * even when a spec is present.
246
296
  *
247
297
  * Note: the LSM scanner does not support every query shape (e.g. reranking,
248
- * hybrid search, `orderBy`). On a MemWAL table those shapes error unless
249
- * `useLsm(false)` is set, because a base-only read would silently exclude
250
- * un-compacted MemWAL data.
298
+ * hybrid search, `orderBy`). On an RTE table those shapes error unless
299
+ * `useRTE(false)` is set, because a base-only read would silently exclude
300
+ * un-compacted RTE data.
251
301
  */
252
- useLsm(enable: boolean): this;
302
+ useRTE(enable: boolean): this;
253
303
  }
254
304
  /**
255
305
  * An interface for a query that can be executed
@@ -271,7 +321,7 @@ export declare class VectorQuery extends StandardQueryBase<NativeVectorQuery> {
271
321
  /**
272
322
  * @hidden
273
323
  */
274
- constructor(inner: NativeVectorQuery | Promise<NativeVectorQuery>);
324
+ constructor(inner: NativeVectorQuery | Promise<NativeVectorQuery>, blobContext?: QueryBlobContext);
275
325
  /**
276
326
  * @hidden
277
327
  */
@@ -279,6 +329,8 @@ export declare class VectorQuery extends StandardQueryBase<NativeVectorQuery> {
279
329
  /**
280
330
  * Set the number of partitions to search (probe)
281
331
  *
332
+ * The number of probes must be greater than 0.
333
+ *
282
334
  * This argument is only used when the vector column has an IVF PQ index.
283
335
  * If there is no index then this value is ignored.
284
336
  *
@@ -290,19 +342,35 @@ export declare class VectorQuery extends StandardQueryBase<NativeVectorQuery> {
290
342
  * partitions should be searched.
291
343
  *
292
344
  * Increasing this value will increase the recall of your query but will
293
- * also increase the latency of your query. The default value is 20. This
294
- * default is good for many cases but the best value to use will depend on
295
- * your data and the recall that you need to achieve.
345
+ * also increase the latency of your query. If this method is not called,
346
+ * Lance's adaptive probe defaults are used.
296
347
  *
297
348
  * For best results we recommend tuning this parameter with a benchmark against
298
349
  * your actual data to find the smallest possible value that will still give
299
350
  * you the desired recall.
300
351
  *
301
- * For more fine grained control over behavior when you have a very narrow filter
302
- * you can use `minimumNprobes` and `maximumNprobes`. This method sets both
303
- * the minimum and maximum to the same value.
352
+ * The value is retained as `nprobes` through client and server request
353
+ * construction. Lance sets both probe bounds to this value. Explicit minimum
354
+ * or maximum settings can override their respective bounds.
304
355
  */
305
356
  nprobes(nprobes: number): VectorQuery;
357
+ /**
358
+ * Set the initial IVF search effort to a finite value in [0, 1].
359
+ *
360
+ * The default, null, uses Auto (internally 0.5). Zero starts at the caller
361
+ * minimum; one searches all partitions within the caller maximum. Later
362
+ * probing may continue when too few candidates are found.
363
+ * Any explicit effort, including 0.5, overrides nprobes in either call order.
364
+ * Explicit minimum and maximum bounds still apply. This is not a recall
365
+ * guarantee and does not change refinement or HNSW ef. The RTE LSM
366
+ * scanner does not yet support this option.
367
+ *
368
+ * @example
369
+ * ```ts
370
+ * table.vectorSearch([0.1, 0.2]).searchEffort(0.75).limit(10);
371
+ * ```
372
+ */
373
+ searchEffort(searchEffort: number | null): VectorQuery;
306
374
  /**
307
375
  * Set the minimum number of probes used.
308
376
  *
@@ -435,17 +503,17 @@ export declare function createAutoQuery(table: NativeTable, query: string, colum
435
503
  * @hideconstructor
436
504
  */
437
505
  export declare class TakeQuery extends QueryBase<NativeTakeQuery> {
438
- constructor(inner: NativeTakeQuery);
506
+ constructor(inner: NativeTakeQuery, blobContext?: QueryBlobContext);
439
507
  /**
440
- * Control MemWAL read routing for this take query.
508
+ * Control RTE read routing for this take query.
441
509
  *
442
- * `false` bypasses the MemWAL and reads the base table only — the escape hatch,
510
+ * `false` bypasses the RTE and reads the base table only — the escape hatch,
443
511
  * since take-by-row-id/offset is not supported on the LSM scanner and, on a
444
- * MemWAL table, auto-routes to it and errors otherwise.
512
+ * RTE table, auto-routes to it and errors otherwise.
445
513
  *
446
514
  * @param enable - `false` reads the base table only.
447
515
  */
448
- useLsm(enable: boolean): this;
516
+ useRTE(enable: boolean): this;
449
517
  }
450
518
  /**
451
519
  * A builder for automatic string searches.
@@ -460,7 +528,7 @@ export declare class AutoQuery extends StandardQueryBase<NativeQuery | NativeVec
460
528
  private readonly createInner;
461
529
  private readonly calls;
462
530
  /** @hidden */
463
- constructor(createInner: () => Promise<NativeQuery | NativeVectorQuery>);
531
+ constructor(createInner: () => Promise<NativeQuery | NativeVectorQuery>, blobContext?: QueryBlobContext);
464
532
  /** @hidden */
465
533
  protected doCall(fn: (inner: NativeQuery | NativeVectorQuery) => void): void;
466
534
  /** @hidden */