@lancedb/lancedb 0.19.0-beta.3 → 0.19.0-beta.5

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.d.ts CHANGED
@@ -291,7 +291,7 @@ export class Query {
291
291
  nearestTo(vector: Float32Array): VectorQuery
292
292
  fastSearch(): void
293
293
  withRowId(): void
294
- execute(maxBatchLength?: number | undefined | null): Promise<RecordBatchIterator>
294
+ execute(maxBatchLength?: number | undefined | null, timeoutMs?: number | undefined | null): Promise<RecordBatchIterator>
295
295
  explainPlan(verbose: boolean): Promise<string>
296
296
  analyzePlan(): Promise<string>
297
297
  }
@@ -314,7 +314,7 @@ export class VectorQuery {
314
314
  fastSearch(): void
315
315
  withRowId(): void
316
316
  rerank(callbacks: RerankerCallbacks): void
317
- execute(maxBatchLength?: number | undefined | null): Promise<RecordBatchIterator>
317
+ execute(maxBatchLength?: number | undefined | null, timeoutMs?: number | undefined | null): Promise<RecordBatchIterator>
318
318
  explainPlan(verbose: boolean): Promise<string>
319
319
  analyzePlan(): Promise<string>
320
320
  }
package/dist/query.d.ts CHANGED
@@ -19,6 +19,10 @@ export interface QueryExecutionOptions {
19
19
  * in smaller chunks.
20
20
  */
21
21
  maxBatchLength?: number;
22
+ /**
23
+ * Timeout for query execution in milliseconds
24
+ */
25
+ timeoutMs?: number;
22
26
  }
23
27
  /**
24
28
  * Options that control the behavior of a full text search
package/dist/query.js CHANGED
@@ -41,7 +41,7 @@ class RecordBatchIterable {
41
41
  }
42
42
  // biome-ignore lint/suspicious/noExplicitAny: skip
43
43
  [Symbol.asyncIterator]() {
44
- return new RecordBatchIterator(this.inner.execute(this.options?.maxBatchLength));
44
+ return new RecordBatchIterator(this.inner.execute(this.options?.maxBatchLength, this.options?.timeoutMs));
45
45
  }
46
46
  }
47
47
  /** Common methods supported by all query types
@@ -219,10 +219,10 @@ class QueryBase {
219
219
  */
220
220
  nativeExecute(options) {
221
221
  if (this.inner instanceof Promise) {
222
- return this.inner.then((inner) => inner.execute(options?.maxBatchLength));
222
+ return this.inner.then((inner) => inner.execute(options?.maxBatchLength, options?.timeoutMs));
223
223
  }
224
224
  else {
225
- return this.inner.execute(options?.maxBatchLength);
225
+ return this.inner.execute(options?.maxBatchLength, options?.timeoutMs);
226
226
  }
227
227
  }
228
228
  /**
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "ann"
12
12
  ],
13
13
  "private": false,
14
- "version": "0.19.0-beta.3",
14
+ "version": "0.19.0-beta.5",
15
15
  "main": "dist/index.js",
16
16
  "exports": {
17
17
  ".": "./dist/index.js",
@@ -100,14 +100,14 @@
100
100
  "reflect-metadata": "^0.2.2"
101
101
  },
102
102
  "optionalDependencies": {
103
- "@lancedb/lancedb-darwin-x64": "0.19.0-beta.3",
104
- "@lancedb/lancedb-darwin-arm64": "0.19.0-beta.3",
105
- "@lancedb/lancedb-linux-x64-gnu": "0.19.0-beta.3",
106
- "@lancedb/lancedb-linux-arm64-gnu": "0.19.0-beta.3",
107
- "@lancedb/lancedb-linux-x64-musl": "0.19.0-beta.3",
108
- "@lancedb/lancedb-linux-arm64-musl": "0.19.0-beta.3",
109
- "@lancedb/lancedb-win32-x64-msvc": "0.19.0-beta.3",
110
- "@lancedb/lancedb-win32-arm64-msvc": "0.19.0-beta.3"
103
+ "@lancedb/lancedb-darwin-x64": "0.19.0-beta.5",
104
+ "@lancedb/lancedb-darwin-arm64": "0.19.0-beta.5",
105
+ "@lancedb/lancedb-linux-x64-gnu": "0.19.0-beta.5",
106
+ "@lancedb/lancedb-linux-arm64-gnu": "0.19.0-beta.5",
107
+ "@lancedb/lancedb-linux-x64-musl": "0.19.0-beta.5",
108
+ "@lancedb/lancedb-linux-arm64-musl": "0.19.0-beta.5",
109
+ "@lancedb/lancedb-win32-x64-msvc": "0.19.0-beta.5",
110
+ "@lancedb/lancedb-win32-arm64-msvc": "0.19.0-beta.5"
111
111
  },
112
112
  "peerDependencies": {
113
113
  "apache-arrow": ">=15.0.0 <=18.1.0"