@lancedb/lancedb 0.19.1-beta.2 → 0.19.1-beta.4
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/index.d.ts +1 -1
- package/dist/merge.d.ts +16 -1
- package/dist/merge.js +4 -1
- package/dist/native.d.ts +1 -0
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { Connection, CreateTableOptions, TableNamesOptions, OpenTableOptions, }
|
|
|
6
6
|
export { ExecutableQuery, Query, QueryBase, VectorQuery, QueryExecutionOptions, FullTextSearchOptions, RecordBatchIterator, FullTextQuery, MatchQuery, PhraseQuery, BoostQuery, MultiMatchQuery, FullTextQueryType, } from "./query";
|
|
7
7
|
export { Index, IndexOptions, IvfPqOptions, IvfFlatOptions, HnswPqOptions, HnswSqOptions, FtsOptions, } from "./indices";
|
|
8
8
|
export { Table, AddDataOptions, UpdateOptions, OptimizeOptions, Version, ColumnAlteration, } from "./table";
|
|
9
|
-
export { MergeInsertBuilder } from "./merge";
|
|
9
|
+
export { MergeInsertBuilder, WriteExecutionOptions } from "./merge";
|
|
10
10
|
export * as embedding from "./embedding";
|
|
11
11
|
export * as rerankers from "./rerankers";
|
|
12
12
|
export { SchemaLike, TableLike, FieldLike, RecordBatchLike, DataLike, IntoVector, } from "./arrow";
|
package/dist/merge.d.ts
CHANGED
|
@@ -50,5 +50,20 @@ export declare class MergeInsertBuilder {
|
|
|
50
50
|
*
|
|
51
51
|
* @returns {Promise<MergeResult>} the merge result
|
|
52
52
|
*/
|
|
53
|
-
execute(data: Data): Promise<MergeResult>;
|
|
53
|
+
execute(data: Data, execOptions?: Partial<WriteExecutionOptions>): Promise<MergeResult>;
|
|
54
|
+
}
|
|
55
|
+
export interface WriteExecutionOptions {
|
|
56
|
+
/**
|
|
57
|
+
* Maximum time to run the operation before cancelling it.
|
|
58
|
+
*
|
|
59
|
+
* By default, there is a 30-second timeout that is only enforced after the
|
|
60
|
+
* first attempt. This is to prevent spending too long retrying to resolve
|
|
61
|
+
* conflicts. For example, if a write attempt takes 20 seconds and fails,
|
|
62
|
+
* the second attempt will be cancelled after 10 seconds, hitting the
|
|
63
|
+
* 30-second timeout. However, a write that takes one hour and succeeds on the
|
|
64
|
+
* first attempt will not be cancelled.
|
|
65
|
+
*
|
|
66
|
+
* When this is set, the timeout is enforced on all attempts, including the first.
|
|
67
|
+
*/
|
|
68
|
+
timeoutMs?: number;
|
|
54
69
|
}
|
package/dist/merge.js
CHANGED
|
@@ -60,7 +60,7 @@ class MergeInsertBuilder {
|
|
|
60
60
|
*
|
|
61
61
|
* @returns {Promise<MergeResult>} the merge result
|
|
62
62
|
*/
|
|
63
|
-
async execute(data) {
|
|
63
|
+
async execute(data, execOptions) {
|
|
64
64
|
let schema;
|
|
65
65
|
if (this.#schema instanceof Promise) {
|
|
66
66
|
schema = await this.#schema;
|
|
@@ -69,6 +69,9 @@ class MergeInsertBuilder {
|
|
|
69
69
|
else {
|
|
70
70
|
schema = this.#schema;
|
|
71
71
|
}
|
|
72
|
+
if (execOptions?.timeoutMs !== undefined) {
|
|
73
|
+
this.#native.setTimeout(execOptions.timeoutMs);
|
|
74
|
+
}
|
|
72
75
|
const buffer = await (0, arrow_1.fromDataToBuffer)(data, undefined, schema);
|
|
73
76
|
return await this.#native.execute(buffer);
|
|
74
77
|
}
|
package/dist/native.d.ts
CHANGED
|
@@ -338,6 +338,7 @@ export class NativeMergeInsertBuilder {
|
|
|
338
338
|
whenMatchedUpdateAll(condition?: string | undefined | null): NativeMergeInsertBuilder
|
|
339
339
|
whenNotMatchedInsertAll(): NativeMergeInsertBuilder
|
|
340
340
|
whenNotMatchedBySourceDelete(filter?: string | undefined | null): NativeMergeInsertBuilder
|
|
341
|
+
setTimeout(timeout: number): void
|
|
341
342
|
execute(buf: Buffer): Promise<MergeResult>
|
|
342
343
|
}
|
|
343
344
|
export class Query {
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"ann"
|
|
12
12
|
],
|
|
13
13
|
"private": false,
|
|
14
|
-
"version": "0.19.1-beta.
|
|
14
|
+
"version": "0.19.1-beta.4",
|
|
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.1-beta.
|
|
104
|
-
"@lancedb/lancedb-darwin-arm64": "0.19.1-beta.
|
|
105
|
-
"@lancedb/lancedb-linux-x64-gnu": "0.19.1-beta.
|
|
106
|
-
"@lancedb/lancedb-linux-arm64-gnu": "0.19.1-beta.
|
|
107
|
-
"@lancedb/lancedb-linux-x64-musl": "0.19.1-beta.
|
|
108
|
-
"@lancedb/lancedb-linux-arm64-musl": "0.19.1-beta.
|
|
109
|
-
"@lancedb/lancedb-win32-x64-msvc": "0.19.1-beta.
|
|
110
|
-
"@lancedb/lancedb-win32-arm64-msvc": "0.19.1-beta.
|
|
103
|
+
"@lancedb/lancedb-darwin-x64": "0.19.1-beta.4",
|
|
104
|
+
"@lancedb/lancedb-darwin-arm64": "0.19.1-beta.4",
|
|
105
|
+
"@lancedb/lancedb-linux-x64-gnu": "0.19.1-beta.4",
|
|
106
|
+
"@lancedb/lancedb-linux-arm64-gnu": "0.19.1-beta.4",
|
|
107
|
+
"@lancedb/lancedb-linux-x64-musl": "0.19.1-beta.4",
|
|
108
|
+
"@lancedb/lancedb-linux-arm64-musl": "0.19.1-beta.4",
|
|
109
|
+
"@lancedb/lancedb-win32-x64-msvc": "0.19.1-beta.4",
|
|
110
|
+
"@lancedb/lancedb-win32-arm64-msvc": "0.19.1-beta.4"
|
|
111
111
|
},
|
|
112
112
|
"peerDependencies": {
|
|
113
113
|
"apache-arrow": ">=15.0.0 <=18.1.0"
|