@cereusdb/standard 0.2.0 → 0.4.0

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.
@@ -9,15 +9,65 @@ export class CereusDB {
9
9
  private constructor();
10
10
  free(): void;
11
11
  [Symbol.dispose](): void;
12
+ /**
13
+ * Create (`create = true`) or attach a persistent database. Returns the
14
+ * database (catalog) name.
15
+ */
16
+ attach_database(location: string, name: string | null | undefined, create: boolean, if_not_exists: boolean): Promise<string>;
17
+ /**
18
+ * Describe all databases, schemas, tables and views as a JSON string.
19
+ */
20
+ catalog_json(): Promise<string>;
21
+ /**
22
+ * Rewrite every table of a persistent database into a single segment.
23
+ */
24
+ compact_database(name: string): Promise<void>;
12
25
  /**
13
26
  * Create a new CereusDB instance.
14
27
  * Initializes DataFusion context and registers all spatial functions.
15
28
  */
16
29
  static create(): CereusDB;
17
30
  /**
18
- * Drop a registered table.
31
+ * Detach a persistent database after writing pending changes.
32
+ */
33
+ detach_database(name: string, if_exists: boolean): Promise<void>;
34
+ /**
35
+ * Drop a database by name or location URL. Persistent databases are
36
+ * deleted from storage.
37
+ */
38
+ drop_database(target: string, if_exists: boolean): Promise<void>;
39
+ /**
40
+ * Drop a registered table. Call `flush()` to write the change when the
41
+ * table belongs to a persistent database.
19
42
  */
20
43
  drop_table(table_name: string): void;
44
+ /**
45
+ * Run a query and encode the result as GeoParquet. `options` may set
46
+ * `compression` and `rowGroupSize`.
47
+ */
48
+ export_geoparquet(query: string, options: any): Promise<Uint8Array>;
49
+ /**
50
+ * Write all pending changes of attached persistent databases.
51
+ */
52
+ flush(): Promise<void>;
53
+ /**
54
+ * Insert Arrow IPC data (stream or file format) into a table, matching
55
+ * columns by name. Returns the number of inserted rows.
56
+ */
57
+ insert_arrow(table_name: string, data: Uint8Array): Promise<number>;
58
+ /**
59
+ * Database locations stored in the backend for `scheme`, attached or not.
60
+ */
61
+ list_database_locations(scheme: string): Promise<any>;
62
+ /**
63
+ * List all tables and views as `catalog.schema.table`.
64
+ */
65
+ qualified_tables(): any;
66
+ /**
67
+ * Set the function `(filename, bytes, mimeType)` that receives files
68
+ * written by `COPY ... TO`. `null` removes it.
69
+ */
70
+ register_export_handler(handler: any): void;
21
71
  /**
22
72
  * Register a GeoJSON string as a named table.
23
73
  */
@@ -51,6 +101,11 @@ export class CereusDB {
51
101
  * The server must support CORS.
52
102
  */
53
103
  register_remote_parquet(table_name: string, url: string): Promise<void>;
104
+ /**
105
+ * Register the storage backend used for database locations with the given
106
+ * URL scheme (for example `opfs`).
107
+ */
108
+ register_storage_backend(scheme: string, backend: any): void;
54
109
  /**
55
110
  * Execute a SQL query.
56
111
  * Returns results as Arrow IPC bytes (Uint8Array).
@@ -68,6 +123,9 @@ export class CereusDB {
68
123
  tables(): any;
69
124
  /**
70
125
  * Get version information.
126
+ *
127
+ * Release builds set `CEREUSDB_VERSION` to the full npm version, including
128
+ * prerelease suffixes; other builds fall back to the crate version.
71
129
  */
72
130
  version(): string;
73
131
  }
@@ -85,8 +143,19 @@ export interface InitOutput {
85
143
  readonly malloc: (a: number) => number;
86
144
  readonly __wbg_cereusdb_free: (a: number, b: number) => void;
87
145
  readonly _abort_js: () => void;
146
+ readonly cereusdb_attach_database: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
147
+ readonly cereusdb_catalog_json: (a: number) => any;
148
+ readonly cereusdb_compact_database: (a: number, b: number, c: number) => any;
88
149
  readonly cereusdb_create: () => [number, number, number];
150
+ readonly cereusdb_detach_database: (a: number, b: number, c: number, d: number) => any;
151
+ readonly cereusdb_drop_database: (a: number, b: number, c: number, d: number) => any;
89
152
  readonly cereusdb_drop_table: (a: number, b: number, c: number) => [number, number];
153
+ readonly cereusdb_export_geoparquet: (a: number, b: number, c: number, d: any) => any;
154
+ readonly cereusdb_flush: (a: number) => any;
155
+ readonly cereusdb_insert_arrow: (a: number, b: number, c: number, d: number, e: number) => any;
156
+ readonly cereusdb_list_database_locations: (a: number, b: number, c: number) => any;
157
+ readonly cereusdb_qualified_tables: (a: number) => [number, number, number];
158
+ readonly cereusdb_register_export_handler: (a: number, b: any) => [number, number];
90
159
  readonly cereusdb_register_geojson: (a: number, b: number, c: number, d: number, e: number) => [number, number];
91
160
  readonly cereusdb_register_geotiff_buffer: (a: number, b: number, c: number, d: number, e: number) => [number, number];
92
161
  readonly cereusdb_register_object_stores: (a: number, b: any) => [number, number];
@@ -94,6 +163,7 @@ export interface InitOutput {
94
163
  readonly cereusdb_register_parquet_table: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
95
164
  readonly cereusdb_register_raster_buffer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
96
165
  readonly cereusdb_register_remote_parquet: (a: number, b: number, c: number, d: number, e: number) => any;
166
+ readonly cereusdb_register_storage_backend: (a: number, b: number, c: number, d: any) => [number, number];
97
167
  readonly cereusdb_sql: (a: number, b: number, c: number) => any;
98
168
  readonly cereusdb_sql_json: (a: number, b: number, c: number) => any;
99
169
  readonly cereusdb_tables: (a: number) => [number, number, number];
@@ -106,10 +176,18 @@ export interface InitOutput {
106
176
  readonly abort: () => void;
107
177
  readonly emscripten_builtin_free: (a: number) => void;
108
178
  readonly emscripten_builtin_malloc: (a: number) => number;
179
+ readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
180
+ readonly rust_zstd_wasm_shim_free: (a: number) => void;
181
+ readonly rust_zstd_wasm_shim_malloc: (a: number) => number;
182
+ readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
183
+ readonly rust_zstd_wasm_shim_memcpy: (a: number, b: number, c: number) => number;
184
+ readonly rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number;
185
+ readonly rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number;
186
+ readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
109
187
  readonly __cpp_exception: WebAssembly.Tag;
110
- readonly wasm_bindgen__closure__destroy__h2bfbe8d19302e783: (a: number, b: number) => void;
111
- readonly wasm_bindgen__convert__closures_____invoke__h3c10a375d8fa7de6: (a: number, b: number, c: any) => [number, number];
112
- readonly wasm_bindgen__convert__closures_____invoke__h62da4917f540b667: (a: number, b: number, c: any, d: any) => void;
188
+ readonly wasm_bindgen__closure__destroy__h8db467765ce434ac: (a: number, b: number) => void;
189
+ readonly wasm_bindgen__convert__closures_____invoke__h7573a8a64f443504: (a: number, b: number, c: any) => [number, number];
190
+ readonly wasm_bindgen__convert__closures_____invoke__h3bcc27440de746c0: (a: number, b: number, c: any, d: any) => void;
113
191
  readonly __wbindgen_malloc: (a: number, b: number) => number;
114
192
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
115
193
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
@@ -1,8 +1,8 @@
1
- import { createEnvImports, createWasiImports, setMemory } from "./env_shim.js?v=ehfix-20260406-1";
1
+ import { createEnvImports, createWasiImports, setMemory } from "./env_shim.js?v=emsdk6-20261001-2";
2
2
  const __env = createEnvImports();
3
3
  const __wasi = createWasiImports();
4
4
  /* @ts-self-types="./cereusdb.d.ts" */
5
- import { cereusdbFetch, cereusdbSetFetchConcurrency } from './snippets/cereusdb-object-store-3803cd296f83ecfa/inline0.js';
5
+ import { cereusdbFetch, cereusdbSetFetchConcurrency } from './snippets/cereusdb-object-store-6ee0e8370430462c/inline0.js';
6
6
 
7
7
  /**
8
8
  * Main CereusDB instance for browser use.
@@ -32,6 +32,60 @@ export class CereusDB {
32
32
  }
33
33
 
34
34
  }
35
+ /**
36
+ * Create (`create = true`) or attach a persistent database. Returns the
37
+ * database (catalog) name.
38
+ * @param {string} location
39
+ * @param {string | null | undefined} name
40
+ * @param {boolean} create
41
+ * @param {boolean} if_not_exists
42
+ * @returns {Promise<string>}
43
+ */
44
+ attach_database(location, name, create, if_not_exists) {
45
+ const ptr0 = passStringToWasm0(location, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
46
+ const len0 = WASM_VECTOR_LEN;
47
+ var ptr1 = isLikeNone(name) ? 0 : passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
48
+ var len1 = WASM_VECTOR_LEN;
49
+ let ret;
50
+ __wbg_termination_guard();
51
+ try {
52
+ ret = wasm.cereusdb_attach_database(this.__wbg_ptr, ptr0, len0, ptr1, len1, create, if_not_exists);;
53
+ } catch(e) {
54
+ __wbg_handle_catch(e);
55
+ }
56
+ return ret;
57
+ }
58
+ /**
59
+ * Describe all databases, schemas, tables and views as a JSON string.
60
+ * @returns {Promise<string>}
61
+ */
62
+ catalog_json() {
63
+ let ret;
64
+ __wbg_termination_guard();
65
+ try {
66
+ ret = wasm.cereusdb_catalog_json(this.__wbg_ptr);;
67
+ } catch(e) {
68
+ __wbg_handle_catch(e);
69
+ }
70
+ return ret;
71
+ }
72
+ /**
73
+ * Rewrite every table of a persistent database into a single segment.
74
+ * @param {string} name
75
+ * @returns {Promise<void>}
76
+ */
77
+ compact_database(name) {
78
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
79
+ const len0 = WASM_VECTOR_LEN;
80
+ let ret;
81
+ __wbg_termination_guard();
82
+ try {
83
+ ret = wasm.cereusdb_compact_database(this.__wbg_ptr, ptr0, len0);;
84
+ } catch(e) {
85
+ __wbg_handle_catch(e);
86
+ }
87
+ return ret;
88
+ }
35
89
  /**
36
90
  * Create a new CereusDB instance.
37
91
  * Initializes DataFusion context and registers all spatial functions.
@@ -51,7 +105,45 @@ export class CereusDB {
51
105
  return CereusDB.__wrap(ret[0]);
52
106
  }
53
107
  /**
54
- * Drop a registered table.
108
+ * Detach a persistent database after writing pending changes.
109
+ * @param {string} name
110
+ * @param {boolean} if_exists
111
+ * @returns {Promise<void>}
112
+ */
113
+ detach_database(name, if_exists) {
114
+ const ptr0 = passStringToWasm0(name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
115
+ const len0 = WASM_VECTOR_LEN;
116
+ let ret;
117
+ __wbg_termination_guard();
118
+ try {
119
+ ret = wasm.cereusdb_detach_database(this.__wbg_ptr, ptr0, len0, if_exists);;
120
+ } catch(e) {
121
+ __wbg_handle_catch(e);
122
+ }
123
+ return ret;
124
+ }
125
+ /**
126
+ * Drop a database by name or location URL. Persistent databases are
127
+ * deleted from storage.
128
+ * @param {string} target
129
+ * @param {boolean} if_exists
130
+ * @returns {Promise<void>}
131
+ */
132
+ drop_database(target, if_exists) {
133
+ const ptr0 = passStringToWasm0(target, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
134
+ const len0 = WASM_VECTOR_LEN;
135
+ let ret;
136
+ __wbg_termination_guard();
137
+ try {
138
+ ret = wasm.cereusdb_drop_database(this.__wbg_ptr, ptr0, len0, if_exists);;
139
+ } catch(e) {
140
+ __wbg_handle_catch(e);
141
+ }
142
+ return ret;
143
+ }
144
+ /**
145
+ * Drop a registered table. Call `flush()` to write the change when the
146
+ * table belongs to a persistent database.
55
147
  * @param {string} table_name
56
148
  */
57
149
  drop_table(table_name) {
@@ -68,6 +160,111 @@ export class CereusDB {
68
160
  throw takeFromExternrefTable0(ret[0]);
69
161
  }
70
162
  }
163
+ /**
164
+ * Run a query and encode the result as GeoParquet. `options` may set
165
+ * `compression` and `rowGroupSize`.
166
+ * @param {string} query
167
+ * @param {any} options
168
+ * @returns {Promise<Uint8Array>}
169
+ */
170
+ export_geoparquet(query, options) {
171
+ const ptr0 = passStringToWasm0(query, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
172
+ const len0 = WASM_VECTOR_LEN;
173
+ let ret;
174
+ __wbg_termination_guard();
175
+ try {
176
+ ret = wasm.cereusdb_export_geoparquet(this.__wbg_ptr, ptr0, len0, options);;
177
+ } catch(e) {
178
+ __wbg_handle_catch(e);
179
+ }
180
+ return ret;
181
+ }
182
+ /**
183
+ * Write all pending changes of attached persistent databases.
184
+ * @returns {Promise<void>}
185
+ */
186
+ flush() {
187
+ let ret;
188
+ __wbg_termination_guard();
189
+ try {
190
+ ret = wasm.cereusdb_flush(this.__wbg_ptr);;
191
+ } catch(e) {
192
+ __wbg_handle_catch(e);
193
+ }
194
+ return ret;
195
+ }
196
+ /**
197
+ * Insert Arrow IPC data (stream or file format) into a table, matching
198
+ * columns by name. Returns the number of inserted rows.
199
+ * @param {string} table_name
200
+ * @param {Uint8Array} data
201
+ * @returns {Promise<number>}
202
+ */
203
+ insert_arrow(table_name, data) {
204
+ const ptr0 = passStringToWasm0(table_name, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
205
+ const len0 = WASM_VECTOR_LEN;
206
+ const ptr1 = passArray8ToWasm0(data, wasm.__wbindgen_malloc);
207
+ const len1 = WASM_VECTOR_LEN;
208
+ let ret;
209
+ __wbg_termination_guard();
210
+ try {
211
+ ret = wasm.cereusdb_insert_arrow(this.__wbg_ptr, ptr0, len0, ptr1, len1);;
212
+ } catch(e) {
213
+ __wbg_handle_catch(e);
214
+ }
215
+ return ret;
216
+ }
217
+ /**
218
+ * Database locations stored in the backend for `scheme`, attached or not.
219
+ * @param {string} scheme
220
+ * @returns {Promise<any>}
221
+ */
222
+ list_database_locations(scheme) {
223
+ const ptr0 = passStringToWasm0(scheme, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
224
+ const len0 = WASM_VECTOR_LEN;
225
+ let ret;
226
+ __wbg_termination_guard();
227
+ try {
228
+ ret = wasm.cereusdb_list_database_locations(this.__wbg_ptr, ptr0, len0);;
229
+ } catch(e) {
230
+ __wbg_handle_catch(e);
231
+ }
232
+ return ret;
233
+ }
234
+ /**
235
+ * List all tables and views as `catalog.schema.table`.
236
+ * @returns {any}
237
+ */
238
+ qualified_tables() {
239
+ let ret;
240
+ __wbg_termination_guard();
241
+ try {
242
+ ret = wasm.cereusdb_qualified_tables(this.__wbg_ptr);;
243
+ } catch(e) {
244
+ __wbg_handle_catch(e);
245
+ }
246
+ if (ret[2]) {
247
+ throw takeFromExternrefTable0(ret[1]);
248
+ }
249
+ return takeFromExternrefTable0(ret[0]);
250
+ }
251
+ /**
252
+ * Set the function `(filename, bytes, mimeType)` that receives files
253
+ * written by `COPY ... TO`. `null` removes it.
254
+ * @param {any} handler
255
+ */
256
+ register_export_handler(handler) {
257
+ let ret;
258
+ __wbg_termination_guard();
259
+ try {
260
+ ret = wasm.cereusdb_register_export_handler(this.__wbg_ptr, handler);;
261
+ } catch(e) {
262
+ __wbg_handle_catch(e);
263
+ }
264
+ if (ret[1]) {
265
+ throw takeFromExternrefTable0(ret[0]);
266
+ }
267
+ }
71
268
  /**
72
269
  * Register a GeoJSON string as a named table.
73
270
  * @param {string} table_name
@@ -216,6 +413,26 @@ export class CereusDB {
216
413
  }
217
414
  return ret;
218
415
  }
416
+ /**
417
+ * Register the storage backend used for database locations with the given
418
+ * URL scheme (for example `opfs`).
419
+ * @param {string} scheme
420
+ * @param {any} backend
421
+ */
422
+ register_storage_backend(scheme, backend) {
423
+ const ptr0 = passStringToWasm0(scheme, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
424
+ const len0 = WASM_VECTOR_LEN;
425
+ let ret;
426
+ __wbg_termination_guard();
427
+ try {
428
+ ret = wasm.cereusdb_register_storage_backend(this.__wbg_ptr, ptr0, len0, backend);;
429
+ } catch(e) {
430
+ __wbg_handle_catch(e);
431
+ }
432
+ if (ret[1]) {
433
+ throw takeFromExternrefTable0(ret[0]);
434
+ }
435
+ }
219
436
  /**
220
437
  * Execute a SQL query.
221
438
  * Returns results as Arrow IPC bytes (Uint8Array).
@@ -272,6 +489,9 @@ export class CereusDB {
272
489
  }
273
490
  /**
274
491
  * Get version information.
492
+ *
493
+ * Release builds set `CEREUSDB_VERSION` to the full npm version, including
494
+ * prerelease suffixes; other builds fall back to the crate version.
275
495
  * @returns {string}
276
496
  */
277
497
  version() {
@@ -314,26 +534,26 @@ const import12 = __wasi;
314
534
  const import13 = __env;
315
535
  const import14 = __env;
316
536
  const import15 = __env;
317
- const import16 = __wasi;
537
+ const import16 = __env;
318
538
  const import17 = __env;
319
539
  const import18 = __env;
320
540
  const import19 = __env;
321
541
  const import20 = __env;
322
- const import21 = __env;
542
+ const import21 = __wasi;
323
543
  const import22 = __env;
324
544
  const import23 = __env;
325
545
  const import24 = __env;
326
- const import25 = __wasi;
327
- const import26 = __env;
546
+ const import25 = __env;
547
+ const import26 = __wasi;
328
548
  const import27 = __env;
329
549
  const import28 = __env;
330
550
  const import29 = __env;
331
551
  const import30 = __env;
332
552
  const import31 = __env;
333
553
  const import32 = __env;
334
- const import33 = __env;
554
+ const import33 = __wasi;
335
555
  const import34 = __wasi;
336
- const import35 = __wasi;
556
+ const import35 = __env;
337
557
  const import36 = __env;
338
558
  const import37 = __env;
339
559
  const import38 = __env;
@@ -341,8 +561,7 @@ const import39 = __env;
341
561
  const import40 = __env;
342
562
  const import41 = __env;
343
563
  const import42 = __env;
344
- const import43 = __env;
345
- const import44 = __wasi;
564
+ const import43 = __wasi;
346
565
 
347
566
  function __wbg_get_imports() {
348
567
  const import0 = {
@@ -437,6 +656,10 @@ function __wbg_get_imports() {
437
656
  __wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
438
657
  arg0._wbg_cb_unref();
439
658
  },
659
+ __wbg_apply_ac9afb97ca32f169: function(arg0, arg1, arg2) {
660
+ const ret = arg0.apply(arg1, arg2);
661
+ return ret;
662
+ },
440
663
  __wbg_arrayBuffer_eb8e9ca620af2a19: function(arg0) {
441
664
  const ret = arg0.arrayBuffer();
442
665
  return ret;
@@ -449,11 +672,15 @@ function __wbg_get_imports() {
449
672
  const ret = arg0.call(arg1);
450
673
  return ret;
451
674
  },
452
- __wbg_cereusdbFetch_deb849058cc19990: function(arg0) {
675
+ __wbg_call_f858478a02f9600f: function(arg0, arg1, arg2, arg3, arg4) {
676
+ const ret = arg0.call(arg1, arg2, arg3, arg4);
677
+ return ret;
678
+ },
679
+ __wbg_cereusdbFetch_34b005651b79ffa9: function(arg0) {
453
680
  const ret = cereusdbFetch(arg0);
454
681
  return ret;
455
682
  },
456
- __wbg_cereusdbSetFetchConcurrency_fca2c11ec07fc658: function(arg0) {
683
+ __wbg_cereusdbSetFetchConcurrency_77cbd1646887d235: function(arg0) {
457
684
  cereusdbSetFetchConcurrency(arg0 >>> 0);
458
685
  },
459
686
  __wbg_done_08ce71ee07e3bd17: function(arg0) {
@@ -488,6 +715,10 @@ function __wbg_get_imports() {
488
715
  const ret = arg0.fetch(arg1);
489
716
  return ret;
490
717
  },
718
+ __wbg_from_4bdf88943703fd48: function(arg0) {
719
+ const ret = Array.from(arg0);
720
+ return ret;
721
+ },
491
722
  __wbg_getRandomValues_3f44b700395062e5: function(arg0, arg1) {
492
723
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
493
724
  },
@@ -502,6 +733,10 @@ function __wbg_get_imports() {
502
733
  const ret = Reflect.get(arg0, arg1);
503
734
  return ret;
504
735
  },
736
+ __wbg_get_3ef1eba1850ade27: function(arg0, arg1) {
737
+ const ret = Reflect.get(arg0, arg1);
738
+ return ret;
739
+ },
505
740
  __wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
506
741
  const ret = arg0[arg1 >>> 0];
507
742
  return ret;
@@ -607,6 +842,10 @@ function __wbg_get_imports() {
607
842
  const ret = new Object();
608
843
  return ret;
609
844
  },
845
+ __wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
846
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
847
+ return ret;
848
+ },
610
849
  __wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
611
850
  try {
612
851
  var state0 = {a: arg0, b: arg1};
@@ -614,7 +853,7 @@ function __wbg_get_imports() {
614
853
  const a = state0.a;
615
854
  state0.a = 0;
616
855
  try {
617
- return wasm_bindgen__convert__closures_____invoke__h62da4917f540b667(a, state0.b, arg0, arg1);
856
+ return wasm_bindgen__convert__closures_____invoke__h3bcc27440de746c0(a, state0.b, arg0, arg1);
618
857
  } finally {
619
858
  state0.a = a;
620
859
  }
@@ -625,6 +864,10 @@ function __wbg_get_imports() {
625
864
  state0.a = state0.b = 0;
626
865
  }
627
866
  },
867
+ __wbg_new_typed_bccac67128ed885a: function() {
868
+ const ret = new Array();
869
+ return ret;
870
+ },
628
871
  __wbg_new_with_length_825018a1616e9e55: function(arg0) {
629
872
  const ret = new Uint8Array(arg0 >>> 0);
630
873
  return ret;
@@ -656,6 +899,10 @@ function __wbg_get_imports() {
656
899
  __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
657
900
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
658
901
  },
902
+ __wbg_push_e87b0e732085a946: function(arg0, arg1) {
903
+ const ret = arg0.push(arg1);
904
+ return ret;
905
+ },
659
906
  __wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
660
907
  const ret = arg0.queueMicrotask;
661
908
  return ret;
@@ -725,9 +972,12 @@ function __wbg_get_imports() {
725
972
  const ret = arg0.value;
726
973
  return ret;
727
974
  },
975
+ __wbg_warn_69424c2d92a2fa73: function(arg0) {
976
+ console.warn(arg0);
977
+ },
728
978
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
729
- // Cast intrinsic for `Closure(Closure { dtor_idx: 7576, function: Function { arguments: [Externref], shim_idx: 24828, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
730
- const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h2bfbe8d19302e783, wasm_bindgen__convert__closures_____invoke__h3c10a375d8fa7de6);
979
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 7940, function: Function { arguments: [Externref], shim_idx: 25507, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
980
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8db467765ce434ac, wasm_bindgen__convert__closures_____invoke__h7573a8a64f443504);
731
981
  return ret;
732
982
  },
733
983
  __wbindgen_cast_0000000000000002: function(arg0) {
@@ -780,26 +1030,26 @@ function __wbg_get_imports() {
780
1030
  "env": import13,
781
1031
  "env": import14,
782
1032
  "env": import15,
783
- "wasi_snapshot_preview1": import16,
1033
+ "env": import16,
784
1034
  "env": import17,
785
1035
  "env": import18,
786
1036
  "env": import19,
787
1037
  "env": import20,
788
- "env": import21,
1038
+ "wasi_snapshot_preview1": import21,
789
1039
  "env": import22,
790
1040
  "env": import23,
791
1041
  "env": import24,
792
- "wasi_snapshot_preview1": import25,
793
- "env": import26,
1042
+ "env": import25,
1043
+ "wasi_snapshot_preview1": import26,
794
1044
  "env": import27,
795
1045
  "env": import28,
796
1046
  "env": import29,
797
1047
  "env": import30,
798
1048
  "env": import31,
799
1049
  "env": import32,
800
- "env": import33,
1050
+ "wasi_snapshot_preview1": import33,
801
1051
  "wasi_snapshot_preview1": import34,
802
- "wasi_snapshot_preview1": import35,
1052
+ "env": import35,
803
1053
  "env": import36,
804
1054
  "env": import37,
805
1055
  "env": import38,
@@ -807,8 +1057,7 @@ function __wbg_get_imports() {
807
1057
  "env": import40,
808
1058
  "env": import41,
809
1059
  "env": import42,
810
- "env": import43,
811
- "wasi_snapshot_preview1": import44,
1060
+ "wasi_snapshot_preview1": import43,
812
1061
  };
813
1062
  }
814
1063
 
@@ -833,11 +1082,11 @@ function __wbg_handle_catch(e) {
833
1082
  getInt32ArrayMemory0()[__wbg_terminated_addr] = 1;
834
1083
  throw e;
835
1084
  }
836
- function wasm_bindgen__convert__closures_____invoke__h3c10a375d8fa7de6(arg0, arg1, arg2) {
1085
+ function wasm_bindgen__convert__closures_____invoke__h7573a8a64f443504(arg0, arg1, arg2) {
837
1086
  let ret;
838
1087
  __wbg_termination_guard();
839
1088
  try {
840
- ret = wasm.wasm_bindgen__convert__closures_____invoke__h3c10a375d8fa7de6(arg0, arg1, arg2);;
1089
+ ret = wasm.wasm_bindgen__convert__closures_____invoke__h7573a8a64f443504(arg0, arg1, arg2);;
841
1090
  } catch(e) {
842
1091
  __wbg_handle_catch(e);
843
1092
  }
@@ -846,10 +1095,10 @@ function wasm_bindgen__convert__closures_____invoke__h3c10a375d8fa7de6(arg0, arg
846
1095
  }
847
1096
  }
848
1097
 
849
- function wasm_bindgen__convert__closures_____invoke__h62da4917f540b667(arg0, arg1, arg2, arg3) {
1098
+ function wasm_bindgen__convert__closures_____invoke__h3bcc27440de746c0(arg0, arg1, arg2, arg3) {
850
1099
  __wbg_termination_guard();
851
1100
  try {
852
- wasm.wasm_bindgen__convert__closures_____invoke__h62da4917f540b667(arg0, arg1, arg2, arg3);
1101
+ wasm.wasm_bindgen__convert__closures_____invoke__h3bcc27440de746c0(arg0, arg1, arg2, arg3);
853
1102
  } catch(e) {
854
1103
  __wbg_handle_catch(e);
855
1104
  }
Binary file
@@ -10,8 +10,19 @@ export const __libc_malloc: (a: number) => number;
10
10
  export const malloc: (a: number) => number;
11
11
  export const __wbg_cereusdb_free: (a: number, b: number) => void;
12
12
  export const _abort_js: () => void;
13
+ export const cereusdb_attach_database: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => any;
14
+ export const cereusdb_catalog_json: (a: number) => any;
15
+ export const cereusdb_compact_database: (a: number, b: number, c: number) => any;
13
16
  export const cereusdb_create: () => [number, number, number];
17
+ export const cereusdb_detach_database: (a: number, b: number, c: number, d: number) => any;
18
+ export const cereusdb_drop_database: (a: number, b: number, c: number, d: number) => any;
14
19
  export const cereusdb_drop_table: (a: number, b: number, c: number) => [number, number];
20
+ export const cereusdb_export_geoparquet: (a: number, b: number, c: number, d: any) => any;
21
+ export const cereusdb_flush: (a: number) => any;
22
+ export const cereusdb_insert_arrow: (a: number, b: number, c: number, d: number, e: number) => any;
23
+ export const cereusdb_list_database_locations: (a: number, b: number, c: number) => any;
24
+ export const cereusdb_qualified_tables: (a: number) => [number, number, number];
25
+ export const cereusdb_register_export_handler: (a: number, b: any) => [number, number];
15
26
  export const cereusdb_register_geojson: (a: number, b: number, c: number, d: number, e: number) => [number, number];
16
27
  export const cereusdb_register_geotiff_buffer: (a: number, b: number, c: number, d: number, e: number) => [number, number];
17
28
  export const cereusdb_register_object_stores: (a: number, b: any) => [number, number];
@@ -19,6 +30,7 @@ export const cereusdb_register_parquet_buffer: (a: number, b: number, c: number,
19
30
  export const cereusdb_register_parquet_table: (a: number, b: number, c: number, d: number, e: number, f: any) => any;
20
31
  export const cereusdb_register_raster_buffer: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => [number, number];
21
32
  export const cereusdb_register_remote_parquet: (a: number, b: number, c: number, d: number, e: number) => any;
33
+ export const cereusdb_register_storage_backend: (a: number, b: number, c: number, d: any) => [number, number];
22
34
  export const cereusdb_sql: (a: number, b: number, c: number) => any;
23
35
  export const cereusdb_sql_json: (a: number, b: number, c: number) => any;
24
36
  export const cereusdb_tables: (a: number) => [number, number, number];
@@ -31,10 +43,18 @@ export const realloc: (a: number, b: number) => number;
31
43
  export const abort: () => void;
32
44
  export const emscripten_builtin_free: (a: number) => void;
33
45
  export const emscripten_builtin_malloc: (a: number) => number;
46
+ export const rust_zstd_wasm_shim_calloc: (a: number, b: number) => number;
47
+ export const rust_zstd_wasm_shim_free: (a: number) => void;
48
+ export const rust_zstd_wasm_shim_malloc: (a: number) => number;
49
+ export const rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number;
50
+ export const rust_zstd_wasm_shim_memcpy: (a: number, b: number, c: number) => number;
51
+ export const rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number;
52
+ export const rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number;
53
+ export const rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void;
34
54
  export const __cpp_exception: WebAssembly.Tag;
35
- export const wasm_bindgen__closure__destroy__h2bfbe8d19302e783: (a: number, b: number) => void;
36
- export const wasm_bindgen__convert__closures_____invoke__h3c10a375d8fa7de6: (a: number, b: number, c: any) => [number, number];
37
- export const wasm_bindgen__convert__closures_____invoke__h62da4917f540b667: (a: number, b: number, c: any, d: any) => void;
55
+ export const wasm_bindgen__closure__destroy__h8db467765ce434ac: (a: number, b: number) => void;
56
+ export const wasm_bindgen__convert__closures_____invoke__h7573a8a64f443504: (a: number, b: number, c: any) => [number, number];
57
+ export const wasm_bindgen__convert__closures_____invoke__h3bcc27440de746c0: (a: number, b: number, c: any, d: any) => void;
38
58
  export const __wbindgen_malloc: (a: number, b: number) => number;
39
59
  export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
40
60
  export const __wbindgen_free: (a: number, b: number, c: number) => void;