@taladb/web 0.2.9 → 0.2.11
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/package.json +1 -1
- package/pkg/package.json +20 -0
- package/pkg/taladb_web.d.ts +316 -0
- package/pkg/taladb_web_bg.wasm +0 -0
- package/pkg/taladb_web_bg.wasm.d.ts +61 -0
package/package.json
CHANGED
package/pkg/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "taladb-web",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"collaborators": [
|
|
5
|
+
"thinkgrid-labs"
|
|
6
|
+
],
|
|
7
|
+
"description": "TalaDB browser WASM bindings (wasm-bindgen + OPFS)",
|
|
8
|
+
"version": "0.2.11",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"files": [
|
|
11
|
+
"taladb_web_bg.wasm",
|
|
12
|
+
"taladb_web.js",
|
|
13
|
+
"taladb_web.d.ts"
|
|
14
|
+
],
|
|
15
|
+
"main": "taladb_web.js",
|
|
16
|
+
"types": "taladb_web.d.ts",
|
|
17
|
+
"sideEffects": [
|
|
18
|
+
"./snippets/*"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
export class CollectionWasm {
|
|
5
|
+
private constructor();
|
|
6
|
+
free(): void;
|
|
7
|
+
[Symbol.dispose](): void;
|
|
8
|
+
/**
|
|
9
|
+
* Count documents matching the filter.
|
|
10
|
+
*/
|
|
11
|
+
count(filter: any): number;
|
|
12
|
+
/**
|
|
13
|
+
* Create a secondary index on a field.
|
|
14
|
+
*/
|
|
15
|
+
createIndex(field: string): void;
|
|
16
|
+
/**
|
|
17
|
+
* Create a vector index on `field`.
|
|
18
|
+
*
|
|
19
|
+
* `dimensions` — expected vector length.
|
|
20
|
+
* `metric` — optional string: `"cosine"` (default), `"dot"`, or `"euclidean"`.
|
|
21
|
+
*/
|
|
22
|
+
createVectorIndex(field: string, dimensions: number, metric?: string | null): void;
|
|
23
|
+
/**
|
|
24
|
+
* Delete all matching documents. Returns the count deleted.
|
|
25
|
+
*/
|
|
26
|
+
deleteMany(filter: any): number;
|
|
27
|
+
/**
|
|
28
|
+
* Delete the first matching document. Returns true if deleted.
|
|
29
|
+
*/
|
|
30
|
+
deleteOne(filter: any): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Drop a secondary index.
|
|
33
|
+
*/
|
|
34
|
+
dropIndex(field: string): void;
|
|
35
|
+
/**
|
|
36
|
+
* Drop a vector index.
|
|
37
|
+
*/
|
|
38
|
+
dropVectorIndex(field: string): void;
|
|
39
|
+
/**
|
|
40
|
+
* Find documents matching the filter. Returns a JS array of plain objects.
|
|
41
|
+
*/
|
|
42
|
+
find(filter: any): any;
|
|
43
|
+
/**
|
|
44
|
+
* Find the `top_k` nearest documents to `query` on a vector index.
|
|
45
|
+
*
|
|
46
|
+
* `filter` — optional pre-filter (same format as `find`). Pass `null` to
|
|
47
|
+
* search across all documents that have the vector field.
|
|
48
|
+
*
|
|
49
|
+
* Returns a JSON array of `{ document: {...}, score: number }` objects.
|
|
50
|
+
*/
|
|
51
|
+
findNearest(field: string, query: Float32Array, top_k: number, filter: any): any;
|
|
52
|
+
/**
|
|
53
|
+
* Find a single document. Returns the document or null.
|
|
54
|
+
*/
|
|
55
|
+
findOne(filter: any): any;
|
|
56
|
+
/**
|
|
57
|
+
* Insert a document. Accepts a plain JS object, returns the ULID string id.
|
|
58
|
+
*/
|
|
59
|
+
insert(doc: any): string;
|
|
60
|
+
/**
|
|
61
|
+
* Insert multiple documents. Returns an array of ULID string ids.
|
|
62
|
+
*/
|
|
63
|
+
insertMany(docs: any): any;
|
|
64
|
+
/**
|
|
65
|
+
* Update all matching documents. Returns the count updated.
|
|
66
|
+
*/
|
|
67
|
+
updateMany(filter: any, update: any): number;
|
|
68
|
+
/**
|
|
69
|
+
* Update the first matching document. Returns true if a document was updated.
|
|
70
|
+
*/
|
|
71
|
+
updateOne(filter: any, update: any): boolean;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export class TalaDBWasm {
|
|
75
|
+
private constructor();
|
|
76
|
+
free(): void;
|
|
77
|
+
[Symbol.dispose](): void;
|
|
78
|
+
/**
|
|
79
|
+
* Get a collection handle by name.
|
|
80
|
+
*/
|
|
81
|
+
collection(name: string): CollectionWasm;
|
|
82
|
+
/**
|
|
83
|
+
* Serialize the entire in-memory database to bytes.
|
|
84
|
+
*
|
|
85
|
+
* Pass the returned `Uint8Array` to `opfs_flush_snapshot` to persist, or
|
|
86
|
+
* store it yourself. On the next page load, pass the same bytes to
|
|
87
|
+
* `openWithSnapshot` to restore all data.
|
|
88
|
+
*/
|
|
89
|
+
exportSnapshot(): Uint8Array;
|
|
90
|
+
/**
|
|
91
|
+
* Open an in-memory database (suitable for tests and environments without OPFS).
|
|
92
|
+
*/
|
|
93
|
+
static openInMemory(): TalaDBWasm;
|
|
94
|
+
/**
|
|
95
|
+
* Open a database, restoring from a previously exported snapshot if provided.
|
|
96
|
+
*
|
|
97
|
+
* Pass the bytes returned by `opfs_load_snapshot` (or `null`/`undefined` for
|
|
98
|
+
* a fresh empty database). After each write, call `exportSnapshot()` and
|
|
99
|
+
* pass the bytes to `opfs_flush_snapshot` to persist across page reloads.
|
|
100
|
+
*
|
|
101
|
+
* ```js
|
|
102
|
+
* const bytes = await opfs_load_snapshot('myapp.db'); // null on first open
|
|
103
|
+
* const db = TalaDBWasm.openWithSnapshot(bytes);
|
|
104
|
+
* // … mutations …
|
|
105
|
+
* await opfs_flush_snapshot('myapp.db', db.exportSnapshot());
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
static openWithSnapshot(snapshot?: Uint8Array | null): TalaDBWasm;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export class WorkerDB {
|
|
112
|
+
private constructor();
|
|
113
|
+
free(): void;
|
|
114
|
+
[Symbol.dispose](): void;
|
|
115
|
+
/**
|
|
116
|
+
* Count matching documents.
|
|
117
|
+
*/
|
|
118
|
+
count(collection: string, filter_json: string): number;
|
|
119
|
+
createFtsIndex(collection: string, field: string): void;
|
|
120
|
+
createIndex(collection: string, field: string): void;
|
|
121
|
+
/**
|
|
122
|
+
* Create a vector index. `metric_str`: `"cosine"` | `"dot"` | `"euclidean"` (default cosine).
|
|
123
|
+
*/
|
|
124
|
+
createVectorIndex(collection: string, field: string, dimensions: number, metric_str?: string | null): void;
|
|
125
|
+
/**
|
|
126
|
+
* Delete all matching documents. Returns the count deleted.
|
|
127
|
+
*/
|
|
128
|
+
deleteMany(collection: string, filter_json: string): number;
|
|
129
|
+
/**
|
|
130
|
+
* Delete the first matching document. Returns `true` / `false`.
|
|
131
|
+
*/
|
|
132
|
+
deleteOne(collection: string, filter_json: string): boolean;
|
|
133
|
+
dropFtsIndex(collection: string, field: string): void;
|
|
134
|
+
dropIndex(collection: string, field: string): void;
|
|
135
|
+
/**
|
|
136
|
+
* Drop a vector index.
|
|
137
|
+
*/
|
|
138
|
+
dropVectorIndex(collection: string, field: string): void;
|
|
139
|
+
/**
|
|
140
|
+
* Find documents. Returns a JSON array of document objects.
|
|
141
|
+
*/
|
|
142
|
+
find(collection: string, filter_json: string): string;
|
|
143
|
+
/**
|
|
144
|
+
* Find nearest neighbours. Returns a JSON string of `[{ document, score }]`.
|
|
145
|
+
*/
|
|
146
|
+
findNearest(collection: string, field: string, query_json: string, top_k: number, filter_json: string): string;
|
|
147
|
+
/**
|
|
148
|
+
* Find one document. Returns a JSON object or `"null"`.
|
|
149
|
+
*/
|
|
150
|
+
findOne(collection: string, filter_json: string): string;
|
|
151
|
+
/**
|
|
152
|
+
* Insert a document. Returns the new ULID as a string.
|
|
153
|
+
*/
|
|
154
|
+
insert(collection: string, doc_json: string): string;
|
|
155
|
+
/**
|
|
156
|
+
* Insert many documents. Returns a JSON array of ULID strings.
|
|
157
|
+
*/
|
|
158
|
+
insertMany(collection: string, docs_json: string): string;
|
|
159
|
+
/**
|
|
160
|
+
* Open an in-memory database (for tests and OPFS-unavailable fallback).
|
|
161
|
+
*/
|
|
162
|
+
static openInMemory(): WorkerDB;
|
|
163
|
+
/**
|
|
164
|
+
* Open a database backed by an OPFS `FileSystemSyncAccessHandle`.
|
|
165
|
+
*
|
|
166
|
+
* Call sequence in the SharedWorker:
|
|
167
|
+
* ```js
|
|
168
|
+
* const handle = await file_handle.createSyncAccessHandle();
|
|
169
|
+
* const workerDb = WorkerDB.openWithOpfs(handle);
|
|
170
|
+
* ```
|
|
171
|
+
*/
|
|
172
|
+
static openWithOpfs(sync_handle: FileSystemSyncAccessHandle): WorkerDB;
|
|
173
|
+
/**
|
|
174
|
+
* Update all matching documents. Returns the count updated.
|
|
175
|
+
*/
|
|
176
|
+
updateMany(collection: string, filter_json: string, update_json: string): number;
|
|
177
|
+
/**
|
|
178
|
+
* Update the first matching document. Returns `true` / `false`.
|
|
179
|
+
*/
|
|
180
|
+
updateOne(collection: string, filter_json: string, update_json: string): boolean;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Load a previous database snapshot from IndexedDB.
|
|
185
|
+
* Returns None if no snapshot exists yet.
|
|
186
|
+
*/
|
|
187
|
+
export function idb_load_snapshot(db_name: string): Promise<Uint8Array | undefined>;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Persist a database snapshot to IndexedDB (via localStorage for simplicity in v1).
|
|
191
|
+
* In v2 this should use a proper IDBObjectStore for binary data.
|
|
192
|
+
*/
|
|
193
|
+
export function idb_save_snapshot(db_name: string, data: Uint8Array): Promise<boolean>;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Initialize panic hook for better error messages in the browser console.
|
|
197
|
+
*/
|
|
198
|
+
export function init(): void;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Returns true if OPFS is available in the current browser context.
|
|
202
|
+
* Always returns false in Workers without storage access.
|
|
203
|
+
*/
|
|
204
|
+
export function is_opfs_available(): Promise<boolean>;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Delete the OPFS snapshot file for `db_name`.
|
|
208
|
+
* No-op if the file does not exist.
|
|
209
|
+
*/
|
|
210
|
+
export function opfs_delete_snapshot(db_name: string): Promise<boolean>;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Persist a database snapshot to OPFS.
|
|
214
|
+
* Creates the file on first call. Subsequent calls overwrite atomically.
|
|
215
|
+
*/
|
|
216
|
+
export function opfs_flush_snapshot(db_name: string, data: Uint8Array): Promise<boolean>;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Load the last persisted database snapshot from OPFS.
|
|
220
|
+
* Returns `None` if the file does not exist yet (first open).
|
|
221
|
+
*/
|
|
222
|
+
export function opfs_load_snapshot(db_name: string): Promise<Uint8Array | undefined>;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Open (or create) an OPFS file and return an `OpfsBackend` for redb.
|
|
226
|
+
*
|
|
227
|
+
* This function is **async** because `getFileHandle` and `createSyncAccessHandle`
|
|
228
|
+
* are both async in the OPFS API. Call it once at worker startup.
|
|
229
|
+
*/
|
|
230
|
+
export function opfs_open_backend(db_name: string): Promise<any>;
|
|
231
|
+
|
|
232
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
233
|
+
|
|
234
|
+
export interface InitOutput {
|
|
235
|
+
readonly memory: WebAssembly.Memory;
|
|
236
|
+
readonly __wbg_workerdb_free: (a: number, b: number) => void;
|
|
237
|
+
readonly workerdb_count: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
238
|
+
readonly workerdb_createFtsIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
239
|
+
readonly workerdb_createIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
240
|
+
readonly workerdb_createVectorIndex: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
|
|
241
|
+
readonly workerdb_deleteMany: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
242
|
+
readonly workerdb_deleteOne: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
243
|
+
readonly workerdb_dropFtsIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
244
|
+
readonly workerdb_dropIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
245
|
+
readonly workerdb_dropVectorIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
246
|
+
readonly workerdb_find: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
247
|
+
readonly workerdb_findNearest: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number, number];
|
|
248
|
+
readonly workerdb_findOne: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
249
|
+
readonly workerdb_insert: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
250
|
+
readonly workerdb_insertMany: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
251
|
+
readonly workerdb_openInMemory: () => [number, number, number];
|
|
252
|
+
readonly workerdb_openWithOpfs: (a: any) => [number, number, number];
|
|
253
|
+
readonly workerdb_updateMany: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
254
|
+
readonly workerdb_updateOne: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
255
|
+
readonly __wbg_collectionwasm_free: (a: number, b: number) => void;
|
|
256
|
+
readonly __wbg_taladbwasm_free: (a: number, b: number) => void;
|
|
257
|
+
readonly collectionwasm_count: (a: number, b: any) => [number, number, number];
|
|
258
|
+
readonly collectionwasm_createIndex: (a: number, b: number, c: number) => [number, number];
|
|
259
|
+
readonly collectionwasm_createVectorIndex: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
260
|
+
readonly collectionwasm_deleteMany: (a: number, b: any) => [number, number, number];
|
|
261
|
+
readonly collectionwasm_deleteOne: (a: number, b: any) => [number, number, number];
|
|
262
|
+
readonly collectionwasm_dropIndex: (a: number, b: number, c: number) => [number, number];
|
|
263
|
+
readonly collectionwasm_dropVectorIndex: (a: number, b: number, c: number) => [number, number];
|
|
264
|
+
readonly collectionwasm_find: (a: number, b: any) => [number, number, number];
|
|
265
|
+
readonly collectionwasm_findNearest: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number, number];
|
|
266
|
+
readonly collectionwasm_findOne: (a: number, b: any) => [number, number, number];
|
|
267
|
+
readonly collectionwasm_insert: (a: number, b: any) => [number, number, number, number];
|
|
268
|
+
readonly collectionwasm_insertMany: (a: number, b: any) => [number, number, number];
|
|
269
|
+
readonly collectionwasm_updateMany: (a: number, b: any, c: any) => [number, number, number];
|
|
270
|
+
readonly collectionwasm_updateOne: (a: number, b: any, c: any) => [number, number, number];
|
|
271
|
+
readonly taladbwasm_collection: (a: number, b: number, c: number) => number;
|
|
272
|
+
readonly taladbwasm_exportSnapshot: (a: number) => [number, number, number, number];
|
|
273
|
+
readonly taladbwasm_openInMemory: () => [number, number, number];
|
|
274
|
+
readonly taladbwasm_openWithSnapshot: (a: number, b: number) => [number, number, number];
|
|
275
|
+
readonly init: () => void;
|
|
276
|
+
readonly idb_load_snapshot: (a: number, b: number) => any;
|
|
277
|
+
readonly idb_save_snapshot: (a: number, b: number, c: number, d: number) => any;
|
|
278
|
+
readonly is_opfs_available: () => any;
|
|
279
|
+
readonly opfs_delete_snapshot: (a: number, b: number) => any;
|
|
280
|
+
readonly opfs_flush_snapshot: (a: number, b: number, c: number, d: number) => any;
|
|
281
|
+
readonly opfs_load_snapshot: (a: number, b: number) => any;
|
|
282
|
+
readonly opfs_open_backend: (a: number, b: number) => any;
|
|
283
|
+
readonly wasm_bindgen__closure__destroy__h1411c0b1433bd547: (a: number, b: number) => void;
|
|
284
|
+
readonly wasm_bindgen__convert__closures_____invoke__h4bd31e7387ab665d: (a: number, b: number, c: any) => [number, number];
|
|
285
|
+
readonly wasm_bindgen__convert__closures_____invoke__h675f15260128efbc: (a: number, b: number, c: any, d: any) => void;
|
|
286
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
287
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
288
|
+
readonly __wbindgen_exn_store: (a: number) => void;
|
|
289
|
+
readonly __externref_table_alloc: () => number;
|
|
290
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
291
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
292
|
+
readonly __externref_table_dealloc: (a: number) => void;
|
|
293
|
+
readonly __wbindgen_start: () => void;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
300
|
+
* a precompiled `WebAssembly.Module`.
|
|
301
|
+
*
|
|
302
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
303
|
+
*
|
|
304
|
+
* @returns {InitOutput}
|
|
305
|
+
*/
|
|
306
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
310
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
311
|
+
*
|
|
312
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
313
|
+
*
|
|
314
|
+
* @returns {Promise<InitOutput>}
|
|
315
|
+
*/
|
|
316
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
Binary file
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const __wbg_workerdb_free: (a: number, b: number) => void;
|
|
5
|
+
export const workerdb_count: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
6
|
+
export const workerdb_createFtsIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
7
|
+
export const workerdb_createIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
8
|
+
export const workerdb_createVectorIndex: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => [number, number];
|
|
9
|
+
export const workerdb_deleteMany: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
10
|
+
export const workerdb_deleteOne: (a: number, b: number, c: number, d: number, e: number) => [number, number, number];
|
|
11
|
+
export const workerdb_dropFtsIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
12
|
+
export const workerdb_dropIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
13
|
+
export const workerdb_dropVectorIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
14
|
+
export const workerdb_find: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
15
|
+
export const workerdb_findNearest: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number, number];
|
|
16
|
+
export const workerdb_findOne: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
17
|
+
export const workerdb_insert: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
18
|
+
export const workerdb_insertMany: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
19
|
+
export const workerdb_openInMemory: () => [number, number, number];
|
|
20
|
+
export const workerdb_openWithOpfs: (a: any) => [number, number, number];
|
|
21
|
+
export const workerdb_updateMany: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
22
|
+
export const workerdb_updateOne: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number, number];
|
|
23
|
+
export const __wbg_collectionwasm_free: (a: number, b: number) => void;
|
|
24
|
+
export const __wbg_taladbwasm_free: (a: number, b: number) => void;
|
|
25
|
+
export const collectionwasm_count: (a: number, b: any) => [number, number, number];
|
|
26
|
+
export const collectionwasm_createIndex: (a: number, b: number, c: number) => [number, number];
|
|
27
|
+
export const collectionwasm_createVectorIndex: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
28
|
+
export const collectionwasm_deleteMany: (a: number, b: any) => [number, number, number];
|
|
29
|
+
export const collectionwasm_deleteOne: (a: number, b: any) => [number, number, number];
|
|
30
|
+
export const collectionwasm_dropIndex: (a: number, b: number, c: number) => [number, number];
|
|
31
|
+
export const collectionwasm_dropVectorIndex: (a: number, b: number, c: number) => [number, number];
|
|
32
|
+
export const collectionwasm_find: (a: number, b: any) => [number, number, number];
|
|
33
|
+
export const collectionwasm_findNearest: (a: number, b: number, c: number, d: number, e: number, f: number, g: any) => [number, number, number];
|
|
34
|
+
export const collectionwasm_findOne: (a: number, b: any) => [number, number, number];
|
|
35
|
+
export const collectionwasm_insert: (a: number, b: any) => [number, number, number, number];
|
|
36
|
+
export const collectionwasm_insertMany: (a: number, b: any) => [number, number, number];
|
|
37
|
+
export const collectionwasm_updateMany: (a: number, b: any, c: any) => [number, number, number];
|
|
38
|
+
export const collectionwasm_updateOne: (a: number, b: any, c: any) => [number, number, number];
|
|
39
|
+
export const taladbwasm_collection: (a: number, b: number, c: number) => number;
|
|
40
|
+
export const taladbwasm_exportSnapshot: (a: number) => [number, number, number, number];
|
|
41
|
+
export const taladbwasm_openInMemory: () => [number, number, number];
|
|
42
|
+
export const taladbwasm_openWithSnapshot: (a: number, b: number) => [number, number, number];
|
|
43
|
+
export const init: () => void;
|
|
44
|
+
export const idb_load_snapshot: (a: number, b: number) => any;
|
|
45
|
+
export const idb_save_snapshot: (a: number, b: number, c: number, d: number) => any;
|
|
46
|
+
export const is_opfs_available: () => any;
|
|
47
|
+
export const opfs_delete_snapshot: (a: number, b: number) => any;
|
|
48
|
+
export const opfs_flush_snapshot: (a: number, b: number, c: number, d: number) => any;
|
|
49
|
+
export const opfs_load_snapshot: (a: number, b: number) => any;
|
|
50
|
+
export const opfs_open_backend: (a: number, b: number) => any;
|
|
51
|
+
export const wasm_bindgen__closure__destroy__h1411c0b1433bd547: (a: number, b: number) => void;
|
|
52
|
+
export const wasm_bindgen__convert__closures_____invoke__h4bd31e7387ab665d: (a: number, b: number, c: any) => [number, number];
|
|
53
|
+
export const wasm_bindgen__convert__closures_____invoke__h675f15260128efbc: (a: number, b: number, c: any, d: any) => void;
|
|
54
|
+
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
55
|
+
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
56
|
+
export const __wbindgen_exn_store: (a: number) => void;
|
|
57
|
+
export const __externref_table_alloc: () => number;
|
|
58
|
+
export const __wbindgen_externrefs: WebAssembly.Table;
|
|
59
|
+
export const __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
60
|
+
export const __externref_table_dealloc: (a: number) => void;
|
|
61
|
+
export const __wbindgen_start: () => void;
|