@perspective-dev/client 5.6.1 → 5.7.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.
- package/README.md +5 -1
- package/dist/cdn/perspective.js +3 -2
- package/dist/cdn/perspective.js.map +4 -4
- package/dist/esm/perspective.browser.d.ts +71 -17
- package/dist/esm/perspective.js +2 -2
- package/dist/esm/perspective.js.map +4 -4
- package/dist/esm/perspective.node.d.ts +20 -3
- package/dist/esm/perspective.node.js +664 -35
- package/dist/esm/perspective.node.js.map +4 -4
- package/dist/esm/public_types.d.ts +31 -0
- package/dist/esm/virtual_servers/clickhouse.d.ts +37 -0
- package/dist/esm/virtual_servers/clickhouse.js +1 -1
- package/dist/esm/virtual_servers/clickhouse.js.map +3 -3
- package/dist/esm/virtual_servers/duckdb.d.ts +14 -9
- package/dist/esm/virtual_servers/duckdb.js +1 -1
- package/dist/esm/virtual_servers/duckdb.js.map +3 -3
- package/dist/esm/wasm/cdn.d.ts +12 -0
- package/dist/esm/wasm/migrate.d.ts +40 -0
- package/dist/esm/wasm/registry.d.ts +123 -0
- package/dist/esm/wasm/registry.js +3 -0
- package/dist/esm/wasm/registry.js.map +7 -0
- package/{src/ts/ts-rs/AggSpec.ts → dist/ts-rs/AggSpec.d.ts} +1 -1
- package/{src/ts/ts-rs/Features.ts → dist/ts-rs/Features.d.ts} +16 -6
- package/{src/ts/ts-rs/Filter.ts → dist/ts-rs/Filter.d.ts} +1 -1
- package/{src/ts/ts-rs/FilterTerm.ts → dist/ts-rs/FilterTerm.d.ts} +1 -1
- package/{src/ts/ts-rs/JoinOptions.ts → dist/ts-rs/JoinOptions.d.ts} +1 -1
- package/dist/ts-rs/ListFlatten.d.ts +3 -0
- package/dist/ts-rs/MapFlatten.d.ts +3 -0
- package/{src/ts/ts-rs/OnRemoveData.ts → dist/ts-rs/OnRemoveData.d.ts} +1 -1
- package/{src/ts/ts-rs/OnUpdateData.ts → dist/ts-rs/OnUpdateData.d.ts} +1 -1
- package/{src/ts/ts-rs/OnUpdateOptions.ts → dist/ts-rs/OnUpdateOptions.d.ts} +1 -1
- package/{src/ts/ts-rs/Sort.ts → dist/ts-rs/Sort.d.ts} +1 -1
- package/dist/ts-rs/StructFlatten.d.ts +3 -0
- package/dist/ts-rs/TableIndex.d.ts +9 -0
- package/dist/ts-rs/TableInitOptions.d.ts +65 -0
- package/{src/ts/ts-rs/UpdateOptions.ts → dist/ts-rs/UpdateOptions.d.ts} +1 -1
- package/{src/ts/ts-rs/ViewConfig.ts → dist/ts-rs/ViewConfig.d.ts} +8 -8
- package/{src/ts/ts-rs/ViewConfigUpdate.ts → dist/ts-rs/ViewConfigUpdate.d.ts} +8 -8
- package/{src/ts/ts-rs/WindowAggSpec.ts → dist/ts-rs/WindowAggSpec.d.ts} +1 -1
- package/{src/ts/ts-rs/WindowSort.ts → dist/ts-rs/WindowSort.d.ts} +1 -1
- package/{src/ts/ts-rs/WindowSpec.ts → dist/ts-rs/WindowSpec.d.ts} +1 -1
- package/{src/ts/ts-rs/Windows.ts → dist/ts-rs/Windows.d.ts} +1 -1
- package/dist/wasm/perspective-js.d.ts +121 -54
- package/dist/wasm/perspective-js.js +123 -20
- package/dist/wasm/perspective-js.wasm +0 -0
- package/dist/wasm/perspective-js.wasm.d.ts +10 -6
- package/dist/wasm/perspective-migrate-js.d.ts +41 -0
- package/dist/wasm/perspective-migrate-js.js +524 -0
- package/dist/wasm/perspective-migrate-js.wasm +0 -0
- package/dist/wasm/perspective-migrate-js.wasm.d.ts +8 -0
- package/package.json +30 -15
- package/dist/esm/ts-rs/AggSpec.d.ts +0 -8
- package/dist/esm/ts-rs/Aggregate.d.ts +0 -1
- package/dist/esm/ts-rs/ColumnType.d.ts +0 -4
- package/dist/esm/ts-rs/ColumnWindow.d.ts +0 -4
- package/dist/esm/ts-rs/DeleteOptions.d.ts +0 -6
- package/dist/esm/ts-rs/Expressions.d.ts +0 -3
- package/dist/esm/ts-rs/Features.d.ts +0 -71
- package/dist/esm/ts-rs/Filter.d.ts +0 -2
- package/dist/esm/ts-rs/FilterReducer.d.ts +0 -1
- package/dist/esm/ts-rs/FilterTerm.d.ts +0 -2
- package/dist/esm/ts-rs/GroupRollupMode.d.ts +0 -1
- package/dist/esm/ts-rs/JoinOptions.d.ts +0 -9
- package/dist/esm/ts-rs/JoinType.d.ts +0 -1
- package/dist/esm/ts-rs/ListFlatten.d.ts +0 -1
- package/dist/esm/ts-rs/OnRemoveData.d.ts +0 -6
- package/dist/esm/ts-rs/OnUpdateData.d.ts +0 -6
- package/dist/esm/ts-rs/OnUpdateMode.d.ts +0 -9
- package/dist/esm/ts-rs/OnUpdateOptions.d.ts +0 -7
- package/dist/esm/ts-rs/Scalar.d.ts +0 -5
- package/dist/esm/ts-rs/Sort.d.ts +0 -2
- package/dist/esm/ts-rs/SortDir.d.ts +0 -1
- package/dist/esm/ts-rs/SplitRollupMode.d.ts +0 -9
- package/dist/esm/ts-rs/SystemInfo.d.ts +0 -40
- package/dist/esm/ts-rs/TableInitOptions.d.ts +0 -45
- package/dist/esm/ts-rs/TableReadFormat.d.ts +0 -7
- package/dist/esm/ts-rs/TypedArrayWindow.d.ts +0 -33
- package/dist/esm/ts-rs/UpdateOptions.d.ts +0 -8
- package/dist/esm/ts-rs/ViewConfig.d.ts +0 -24
- package/dist/esm/ts-rs/ViewConfigUpdate.d.ts +0 -116
- package/dist/esm/ts-rs/ViewOnRemoveResp.d.ts +0 -4
- package/dist/esm/ts-rs/ViewOnUpdateResp.d.ts +0 -4
- package/dist/esm/ts-rs/ViewWindow.d.ts +0 -30
- package/dist/esm/ts-rs/WindowAggSpec.d.ts +0 -25
- package/dist/esm/ts-rs/WindowSort.d.ts +0 -7
- package/dist/esm/ts-rs/WindowSortDir.d.ts +0 -6
- package/dist/esm/ts-rs/WindowSpec.d.ts +0 -47
- package/dist/esm/ts-rs/Windows.d.ts +0 -10
- package/src/rust/client.rs +0 -590
- package/src/rust/generic_sql_model.rs +0 -276
- package/src/rust/lib.rs +0 -99
- package/src/rust/table.rs +0 -397
- package/src/rust/table_data.rs +0 -164
- package/src/rust/typed_array.rs +0 -386
- package/src/rust/utils/browser.rs +0 -35
- package/src/rust/utils/console_logger.rs +0 -237
- package/src/rust/utils/errors.rs +0 -274
- package/src/rust/utils/futures.rs +0 -274
- package/src/rust/utils/json.rs +0 -252
- package/src/rust/utils/local_poll_loop.rs +0 -63
- package/src/rust/utils/mod.rs +0 -32
- package/src/rust/utils/serde.rs +0 -46
- package/src/rust/utils/trace_allocator.rs +0 -98
- package/src/rust/view.rs +0 -463
- package/src/rust/virtual_server.rs +0 -991
- package/src/ts/perspective-server.worker.ts +0 -74
- package/src/ts/perspective.browser.ts +0 -380
- package/src/ts/perspective.cdn.ts +0 -28
- package/src/ts/perspective.node.ts +0 -556
- package/src/ts/ts-rs/ListFlatten.ts +0 -3
- package/src/ts/ts-rs/TableInitOptions.ts +0 -42
- package/src/ts/virtual_server.ts +0 -83
- package/src/ts/virtual_servers/clickhouse.ts +0 -533
- package/src/ts/virtual_servers/duckdb.ts +0 -549
- package/src/ts/wasm/browser.ts +0 -134
- package/src/ts/wasm/cdn.ts +0 -32
- package/src/ts/wasm/decompress.ts +0 -83
- package/src/ts/wasm/emscripten_api.ts +0 -91
- package/src/ts/wasm/engine.ts +0 -309
- package/src/ts/wasm/features.ts +0 -31
- package/src/ts/wasm/perspective-server.poly.ts +0 -460
- package/src/ts/websocket.ts +0 -95
- package/tsconfig.json +0 -22
- /package/{src/ts/ts-rs/Aggregate.ts → dist/ts-rs/Aggregate.d.ts} +0 -0
- /package/{src/ts/ts-rs/ColumnType.ts → dist/ts-rs/ColumnType.d.ts} +0 -0
- /package/{src/ts/ts-rs/ColumnWindow.ts → dist/ts-rs/ColumnWindow.d.ts} +0 -0
- /package/{src/ts/ts-rs/DeleteOptions.ts → dist/ts-rs/DeleteOptions.d.ts} +0 -0
- /package/{src/ts/ts-rs/Expressions.ts → dist/ts-rs/Expressions.d.ts} +0 -0
- /package/{src/ts/ts-rs/FilterReducer.ts → dist/ts-rs/FilterReducer.d.ts} +0 -0
- /package/{src/ts/ts-rs/GroupRollupMode.ts → dist/ts-rs/GroupRollupMode.d.ts} +0 -0
- /package/{src/ts/ts-rs/JoinType.ts → dist/ts-rs/JoinType.d.ts} +0 -0
- /package/{src/ts/ts-rs/OnUpdateMode.ts → dist/ts-rs/OnUpdateMode.d.ts} +0 -0
- /package/{src/ts/ts-rs/Scalar.ts → dist/ts-rs/Scalar.d.ts} +0 -0
- /package/{src/ts/ts-rs/SortDir.ts → dist/ts-rs/SortDir.d.ts} +0 -0
- /package/{src/ts/ts-rs/SplitRollupMode.ts → dist/ts-rs/SplitRollupMode.d.ts} +0 -0
- /package/{src/ts/ts-rs/SystemInfo.ts → dist/ts-rs/SystemInfo.d.ts} +0 -0
- /package/{src/ts/ts-rs/TableReadFormat.ts → dist/ts-rs/TableReadFormat.d.ts} +0 -0
- /package/{src/ts/ts-rs/TypedArrayWindow.ts → dist/ts-rs/TypedArrayWindow.d.ts} +0 -0
- /package/{src/ts/ts-rs/ViewOnRemoveResp.ts → dist/ts-rs/ViewOnRemoveResp.d.ts} +0 -0
- /package/{src/ts/ts-rs/ViewOnUpdateResp.ts → dist/ts-rs/ViewOnUpdateResp.d.ts} +0 -0
- /package/{src/ts/ts-rs/ViewWindow.ts → dist/ts-rs/ViewWindow.d.ts} +0 -0
- /package/{src/ts/ts-rs/WindowSortDir.ts → dist/ts-rs/WindowSortDir.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
2
|
-
import type { WindowSpec } from "./WindowSpec.
|
|
2
|
+
import type { WindowSpec } from "./WindowSpec.d.ts";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The window columns of a `ViewConfig`, keyed by output column alias -
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export interface VirtualHostedTable {
|
|
9
9
|
name: string;
|
|
10
|
-
index?: string;
|
|
10
|
+
index?: string | string[];
|
|
11
11
|
limit?: number;
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -93,6 +93,39 @@ export interface VirtualServerHandler {
|
|
|
93
93
|
config: ViewConfig,
|
|
94
94
|
): { min: Scalar; max: Scalar } | Promise<{ min: Scalar; max: Scalar }>;
|
|
95
95
|
|
|
96
|
+
/**
|
|
97
|
+
* Expand the row at `rowIndex` of a `"rollup"` mode `group_by` view to
|
|
98
|
+
* show its children, each collapsed, returning the number of rows shown.
|
|
99
|
+
* Required when `getFeatures()` declares `expand_collapse`.
|
|
100
|
+
*/
|
|
101
|
+
viewExpand?(
|
|
102
|
+
viewId: string,
|
|
103
|
+
config: ViewConfig,
|
|
104
|
+
rowIndex: number,
|
|
105
|
+
): number | Promise<number>;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Collapse the row at `rowIndex` of a `"rollup"` mode `group_by` view,
|
|
109
|
+
* discarding its descendants' expansion, returning the number of rows
|
|
110
|
+
* hidden. Required when `getFeatures()` declares `expand_collapse`.
|
|
111
|
+
*/
|
|
112
|
+
viewCollapse?(
|
|
113
|
+
viewId: string,
|
|
114
|
+
config: ViewConfig,
|
|
115
|
+
rowIndex: number,
|
|
116
|
+
): number | Promise<number>;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Expand every row of a `"rollup"` mode `group_by` view whose path is no
|
|
120
|
+
* longer than `depth` and collapse the rest. Required when
|
|
121
|
+
* `getFeatures()` declares `expand_collapse`.
|
|
122
|
+
*/
|
|
123
|
+
viewSetDepth?(
|
|
124
|
+
viewId: string,
|
|
125
|
+
config: ViewConfig,
|
|
126
|
+
depth: number,
|
|
127
|
+
): void | Promise<void>;
|
|
128
|
+
|
|
96
129
|
/** Defaults to no optional features. */
|
|
97
130
|
getFeatures?(): Features | Promise<Features>;
|
|
98
131
|
|
|
@@ -113,48 +146,48 @@ export interface VirtualServerHandler {
|
|
|
113
146
|
|
|
114
147
|
|
|
115
148
|
|
|
116
|
-
export type * from "
|
|
117
|
-
export type * from "
|
|
118
|
-
export type * from "
|
|
119
|
-
export type * from "
|
|
120
|
-
export type * from "
|
|
121
|
-
export type * from "
|
|
122
|
-
export type * from "
|
|
123
|
-
export type * from "
|
|
124
|
-
export type * from "
|
|
125
|
-
export type * from "
|
|
126
|
-
export type * from "
|
|
127
|
-
export type * from "
|
|
128
|
-
export type * from "
|
|
129
|
-
export type * from "
|
|
130
|
-
export type * from "
|
|
131
|
-
export type * from "
|
|
132
|
-
export type * from "
|
|
133
|
-
export type * from "
|
|
134
|
-
export type * from "
|
|
135
|
-
export type * from "
|
|
136
|
-
export type * from "
|
|
137
|
-
export type * from "
|
|
138
|
-
export type * from "
|
|
149
|
+
export type * from "../ts-rs/ViewWindow.d.ts";
|
|
150
|
+
export type * from "../ts-rs/ColumnType.d.ts";
|
|
151
|
+
export type * from "../ts-rs/ColumnWindow.d.ts";
|
|
152
|
+
export type * from "../ts-rs/TableInitOptions.d.ts";
|
|
153
|
+
export type * from "../ts-rs/ViewConfigUpdate.d.ts";
|
|
154
|
+
export type * from "../ts-rs/ViewOnUpdateResp.d.ts";
|
|
155
|
+
export type * from "../ts-rs/ViewOnRemoveResp.d.ts";
|
|
156
|
+
export type * from "../ts-rs/OnRemoveData.d.ts";
|
|
157
|
+
export type * from "../ts-rs/OnUpdateData.d.ts";
|
|
158
|
+
export type * from "../ts-rs/OnUpdateOptions.d.ts";
|
|
159
|
+
export type * from "../ts-rs/UpdateOptions.d.ts";
|
|
160
|
+
export type * from "../ts-rs/DeleteOptions.d.ts";
|
|
161
|
+
export type * from "../ts-rs/Scalar.d.ts";
|
|
162
|
+
export type * from "../ts-rs/SystemInfo.d.ts";
|
|
163
|
+
export type * from "../ts-rs/SortDir.d.ts";
|
|
164
|
+
export type * from "../ts-rs/Filter.d.ts";
|
|
165
|
+
export type * from "../ts-rs/ViewConfig.d.ts";
|
|
166
|
+
export type * from "../ts-rs/JoinOptions.d.ts";
|
|
167
|
+
export type * from "../ts-rs/JoinType.d.ts";
|
|
168
|
+
export type * from "../ts-rs/TypedArrayWindow.d.ts";
|
|
169
|
+
export type * from "../ts-rs/Features.d.ts";
|
|
170
|
+
export type * from "../ts-rs/AggSpec.d.ts";
|
|
171
|
+
export type * from "../ts-rs/WindowAggSpec.d.ts";
|
|
139
172
|
|
|
140
|
-
import type {ColumnWindow} from "
|
|
141
|
-
import type {ColumnType} from "
|
|
142
|
-
import type {ViewWindow} from "
|
|
143
|
-
import type {TypedArrayWindow} from "
|
|
144
|
-
import type {TableInitOptions} from "
|
|
145
|
-
import type {JoinOptions} from "
|
|
146
|
-
import type {JoinType} from "
|
|
147
|
-
import type {ViewConfigUpdate} from "
|
|
148
|
-
import type * as on_update_args from "
|
|
149
|
-
import type {OnRemoveData} from "
|
|
150
|
-
import type {OnUpdateData} from "
|
|
151
|
-
import type {OnUpdateOptions} from "
|
|
152
|
-
import type {UpdateOptions} from "
|
|
153
|
-
import type {DeleteOptions} from "
|
|
154
|
-
import type {SystemInfo} from "
|
|
155
|
-
import type {ViewConfig} from "
|
|
156
|
-
import type {Scalar} from "
|
|
157
|
-
import type {Features} from "
|
|
173
|
+
import type {ColumnWindow} from "../ts-rs/ColumnWindow.d.ts";
|
|
174
|
+
import type {ColumnType} from "../ts-rs/ColumnType.d.ts";
|
|
175
|
+
import type {ViewWindow} from "../ts-rs/ViewWindow.d.ts";
|
|
176
|
+
import type {TypedArrayWindow} from "../ts-rs/TypedArrayWindow.d.ts";
|
|
177
|
+
import type {TableInitOptions} from "../ts-rs/TableInitOptions.d.ts";
|
|
178
|
+
import type {JoinOptions} from "../ts-rs/JoinOptions.d.ts";
|
|
179
|
+
import type {JoinType} from "../ts-rs/JoinType.d.ts";
|
|
180
|
+
import type {ViewConfigUpdate} from "../ts-rs/ViewConfigUpdate.d.ts";
|
|
181
|
+
import type * as on_update_args from "../ts-rs/ViewOnUpdateResp.d.ts";
|
|
182
|
+
import type {OnRemoveData} from "../ts-rs/OnRemoveData.d.ts";
|
|
183
|
+
import type {OnUpdateData} from "../ts-rs/OnUpdateData.d.ts";
|
|
184
|
+
import type {OnUpdateOptions} from "../ts-rs/OnUpdateOptions.d.ts";
|
|
185
|
+
import type {UpdateOptions} from "../ts-rs/UpdateOptions.d.ts";
|
|
186
|
+
import type {DeleteOptions} from "../ts-rs/DeleteOptions.d.ts";
|
|
187
|
+
import type {SystemInfo} from "../ts-rs/SystemInfo.d.ts";
|
|
188
|
+
import type {ViewConfig} from "../ts-rs/ViewConfig.d.ts";
|
|
189
|
+
import type {Scalar} from "../ts-rs/Scalar.d.ts";
|
|
190
|
+
import type {Features} from "../ts-rs/Features.d.ts";
|
|
158
191
|
|
|
159
192
|
|
|
160
193
|
|
|
@@ -343,9 +376,10 @@ export class Client {
|
|
|
343
376
|
* - `options` - Optional configuration which provides one of:
|
|
344
377
|
* - `limit` - The max number of rows the resulting [`Table`] can
|
|
345
378
|
* store.
|
|
346
|
-
* - `index` - The column name
|
|
347
|
-
* `Table` is being instantiated by _data_,
|
|
348
|
-
* present in the data.
|
|
379
|
+
* - `index` - The column name, or an array of column names, to use as
|
|
380
|
+
* an _index_. If this `Table` is being instantiated by _data_, these
|
|
381
|
+
* column names must be present in the data. An array keys rows by
|
|
382
|
+
* the combination of the columns' values.
|
|
349
383
|
* - `name` - The name of the table. This will be generated if it is
|
|
350
384
|
* not provided.
|
|
351
385
|
* - `format` - The explicit format of the input data, can be one of
|
|
@@ -383,6 +417,12 @@ export class Client {
|
|
|
383
417
|
* ```javascript
|
|
384
418
|
* const table = await client.table(data, { index: "Row ID" });
|
|
385
419
|
* ```
|
|
420
|
+
*
|
|
421
|
+
* Create a table with a composite `index`:
|
|
422
|
+
*
|
|
423
|
+
* ```javascript
|
|
424
|
+
* const table = await client.table(data, { index: ["name", "sector"] });
|
|
425
|
+
* ```
|
|
386
426
|
*/
|
|
387
427
|
table(value: string | ArrayBuffer | Record<string, unknown[]> | Record<string, unknown>[] | Record<string, ColumnType>, options?: TableInitOptions | null): Promise<Table>;
|
|
388
428
|
/**
|
|
@@ -440,6 +480,11 @@ export class GenericSQLVirtualServerModel {
|
|
|
440
480
|
* Returns the SQL query to get the row count of a table.
|
|
441
481
|
*/
|
|
442
482
|
tableSize(table_id: string): string;
|
|
483
|
+
/**
|
|
484
|
+
* Returns the `UPDATE` collapsing the `row_index`-th visible row, whose
|
|
485
|
+
* affected-row count is the number of rows hidden.
|
|
486
|
+
*/
|
|
487
|
+
viewCollapse(view_id: string, config: any, row_index: number): string;
|
|
443
488
|
/**
|
|
444
489
|
* Returns the SQL query to get the column count of a view.
|
|
445
490
|
*/
|
|
@@ -448,6 +493,11 @@ export class GenericSQLVirtualServerModel {
|
|
|
448
493
|
* Returns the SQL query to delete a view.
|
|
449
494
|
*/
|
|
450
495
|
viewDelete(view_id: string): string;
|
|
496
|
+
/**
|
|
497
|
+
* Returns the `UPDATE` expanding the `row_index`-th visible row, whose
|
|
498
|
+
* affected-row count is the number of rows shown.
|
|
499
|
+
*/
|
|
500
|
+
viewExpand(view_id: string, config: any, row_index: number): string;
|
|
451
501
|
/**
|
|
452
502
|
* Returns the SQL query to fetch data from a view with the given viewport.
|
|
453
503
|
*/
|
|
@@ -464,6 +514,11 @@ export class GenericSQLVirtualServerModel {
|
|
|
464
514
|
* Returns the SQL query to describe a view's schema.
|
|
465
515
|
*/
|
|
466
516
|
viewSchema(view_id: string): string;
|
|
517
|
+
/**
|
|
518
|
+
* Returns the `UPDATE` expanding exactly the rows whose path is no longer
|
|
519
|
+
* than `depth`.
|
|
520
|
+
*/
|
|
521
|
+
viewSetDepth(view_id: string, config: any, depth: number): string;
|
|
467
522
|
/**
|
|
468
523
|
* Returns the SQL query to get the row count of a view.
|
|
469
524
|
*/
|
|
@@ -555,6 +610,10 @@ export class Table {
|
|
|
555
610
|
* Get a copy of the [`Client`] this [`Table`] came from.
|
|
556
611
|
*/
|
|
557
612
|
get_client(): Promise<Client>;
|
|
613
|
+
/**
|
|
614
|
+
* Returns the features supported by the server hosting this [`Table`].
|
|
615
|
+
*/
|
|
616
|
+
get_features(): Promise<Features>;
|
|
558
617
|
/**
|
|
559
618
|
* Returns the name of the index column for the table.
|
|
560
619
|
*
|
|
@@ -562,10 +621,12 @@ export class Table {
|
|
|
562
621
|
*
|
|
563
622
|
* ```javascript
|
|
564
623
|
* const table = await client.table("x,y\n1,2\n3,4", { index: "x" });
|
|
565
|
-
* const index = table.get_index(); // "x"
|
|
624
|
+
* const index = await table.get_index(); // "x"
|
|
625
|
+
* const table2 = await client.table(data, { index: ["x", "y"] });
|
|
626
|
+
* const index2 = await table2.get_index(); // ["x", "y"]
|
|
566
627
|
* ```
|
|
567
628
|
*/
|
|
568
|
-
get_index(): Promise<string>;
|
|
629
|
+
get_index(): Promise<string | string[] | undefined>;
|
|
569
630
|
/**
|
|
570
631
|
* Returns the user-specified row limit for this table.
|
|
571
632
|
*/
|
|
@@ -596,12 +657,14 @@ export class Table {
|
|
|
596
657
|
* # Arguments
|
|
597
658
|
*
|
|
598
659
|
* - `indices` - A list of `index` column values for rows that should be
|
|
599
|
-
* removed.
|
|
660
|
+
* removed. For a composite `index`, each entry is an array of the index
|
|
661
|
+
* column values in key order.
|
|
600
662
|
*
|
|
601
663
|
* # JavaScript Examples
|
|
602
664
|
*
|
|
603
665
|
* ```javascript
|
|
604
666
|
* await table.remove([1, 2, 3]);
|
|
667
|
+
* await composite_table.remove([["AAPL", "Tech"], ["MSFT", "Tech"]]);
|
|
605
668
|
* ```
|
|
606
669
|
*/
|
|
607
670
|
remove(value: any, options?: UpdateOptions | null): Promise<void>;
|
|
@@ -1017,12 +1080,15 @@ export interface InitOutput {
|
|
|
1017
1080
|
readonly genericsqlvirtualservermodel_tableMakeView: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
1018
1081
|
readonly genericsqlvirtualservermodel_tableSchema: (a: number, b: number, c: number, d: number) => void;
|
|
1019
1082
|
readonly genericsqlvirtualservermodel_tableSize: (a: number, b: number, c: number, d: number) => void;
|
|
1083
|
+
readonly genericsqlvirtualservermodel_viewCollapse: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1020
1084
|
readonly genericsqlvirtualservermodel_viewColumnSize: (a: number, b: number, c: number, d: number) => void;
|
|
1021
1085
|
readonly genericsqlvirtualservermodel_viewDelete: (a: number, b: number, c: number, d: number) => void;
|
|
1086
|
+
readonly genericsqlvirtualservermodel_viewExpand: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1022
1087
|
readonly genericsqlvirtualservermodel_viewGetData: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1023
1088
|
readonly genericsqlvirtualservermodel_viewGetMinMax: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1024
1089
|
readonly genericsqlvirtualservermodel_viewMakeTable: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
1025
1090
|
readonly genericsqlvirtualservermodel_viewSchema: (a: number, b: number, c: number, d: number) => void;
|
|
1091
|
+
readonly genericsqlvirtualservermodel_viewSetDepth: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
1026
1092
|
readonly genericsqlvirtualservermodel_viewSize: (a: number, b: number, c: number, d: number) => void;
|
|
1027
1093
|
readonly init: () => void;
|
|
1028
1094
|
readonly proxysession_close: (a: number) => number;
|
|
@@ -1034,6 +1100,7 @@ export interface InitOutput {
|
|
|
1034
1100
|
readonly table_delete: (a: number, b: number) => number;
|
|
1035
1101
|
readonly table_describe: (a: number, b: number) => number;
|
|
1036
1102
|
readonly table_get_client: (a: number) => number;
|
|
1103
|
+
readonly table_get_features: (a: number) => number;
|
|
1037
1104
|
readonly table_get_index: (a: number) => number;
|
|
1038
1105
|
readonly table_get_limit: (a: number) => number;
|
|
1039
1106
|
readonly table_get_name: (a: number) => number;
|
|
@@ -1085,12 +1152,12 @@ export interface InitOutput {
|
|
|
1085
1152
|
readonly virtualdataslice_setStringCol: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
1086
1153
|
readonly virtualserver_handleRequest: (a: number, b: number, c: number) => number;
|
|
1087
1154
|
readonly virtualserver_new: (a: number, b: number) => void;
|
|
1088
|
-
readonly
|
|
1089
|
-
readonly
|
|
1090
|
-
readonly
|
|
1091
|
-
readonly
|
|
1092
|
-
readonly
|
|
1093
|
-
readonly
|
|
1155
|
+
readonly __wasm_bindgen_func_elem_1714: (a: number, b: number) => void;
|
|
1156
|
+
readonly __wasm_bindgen_func_elem_4747: (a: number, b: number) => void;
|
|
1157
|
+
readonly __wasm_bindgen_func_elem_13265: (a: number, b: number, c: number, d: number) => void;
|
|
1158
|
+
readonly __wasm_bindgen_func_elem_4749: (a: number, b: number, c: number) => void;
|
|
1159
|
+
readonly __wasm_bindgen_func_elem_2081: (a: number, b: number) => number;
|
|
1160
|
+
readonly __wasm_bindgen_func_elem_2082: (a: number, b: number) => void;
|
|
1094
1161
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
1095
1162
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
1096
1163
|
readonly __wbindgen_export3: (a: number) => void;
|
|
@@ -312,9 +312,10 @@ export class Client {
|
|
|
312
312
|
* - `options` - Optional configuration which provides one of:
|
|
313
313
|
* - `limit` - The max number of rows the resulting [`Table`] can
|
|
314
314
|
* store.
|
|
315
|
-
* - `index` - The column name
|
|
316
|
-
* `Table` is being instantiated by _data_,
|
|
317
|
-
* present in the data.
|
|
315
|
+
* - `index` - The column name, or an array of column names, to use as
|
|
316
|
+
* an _index_. If this `Table` is being instantiated by _data_, these
|
|
317
|
+
* column names must be present in the data. An array keys rows by
|
|
318
|
+
* the combination of the columns' values.
|
|
318
319
|
* - `name` - The name of the table. This will be generated if it is
|
|
319
320
|
* not provided.
|
|
320
321
|
* - `format` - The explicit format of the input data, can be one of
|
|
@@ -352,6 +353,12 @@ export class Client {
|
|
|
352
353
|
* ```javascript
|
|
353
354
|
* const table = await client.table(data, { index: "Row ID" });
|
|
354
355
|
* ```
|
|
356
|
+
*
|
|
357
|
+
* Create a table with a composite `index`:
|
|
358
|
+
*
|
|
359
|
+
* ```javascript
|
|
360
|
+
* const table = await client.table(data, { index: ["name", "sector"] });
|
|
361
|
+
* ```
|
|
355
362
|
* @param {string | ArrayBuffer | Record<string, unknown[]> | Record<string, unknown>[] | Record<string, ColumnType>} value
|
|
356
363
|
* @param {TableInitOptions | null} [options]
|
|
357
364
|
* @returns {Promise<Table>}
|
|
@@ -611,6 +618,34 @@ export class GenericSQLVirtualServerModel {
|
|
|
611
618
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
612
619
|
}
|
|
613
620
|
}
|
|
621
|
+
/**
|
|
622
|
+
* Returns the `UPDATE` collapsing the `row_index`-th visible row, whose
|
|
623
|
+
* affected-row count is the number of rows hidden.
|
|
624
|
+
* @param {string} view_id
|
|
625
|
+
* @param {any} config
|
|
626
|
+
* @param {number} row_index
|
|
627
|
+
* @returns {string}
|
|
628
|
+
*/
|
|
629
|
+
viewCollapse(view_id, config, row_index) {
|
|
630
|
+
try {
|
|
631
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
632
|
+
const ptr0 = passStringToWasm0(view_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
633
|
+
const len0 = WASM_VECTOR_LEN;
|
|
634
|
+
wasm.genericsqlvirtualservermodel_viewCollapse(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(config), row_index);
|
|
635
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
636
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
637
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
638
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
639
|
+
if (r3) {
|
|
640
|
+
throw takeObject(r2);
|
|
641
|
+
}
|
|
642
|
+
var v2 = getCachedStringFromWasm0(r0, r1);
|
|
643
|
+
if (r0 !== 0) { wasm.__wbindgen_export4(r0, r1, 1); }
|
|
644
|
+
return v2;
|
|
645
|
+
} finally {
|
|
646
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
647
|
+
}
|
|
648
|
+
}
|
|
614
649
|
/**
|
|
615
650
|
* Returns the SQL query to get the column count of a view.
|
|
616
651
|
* @param {string} view_id
|
|
@@ -661,6 +696,34 @@ export class GenericSQLVirtualServerModel {
|
|
|
661
696
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
662
697
|
}
|
|
663
698
|
}
|
|
699
|
+
/**
|
|
700
|
+
* Returns the `UPDATE` expanding the `row_index`-th visible row, whose
|
|
701
|
+
* affected-row count is the number of rows shown.
|
|
702
|
+
* @param {string} view_id
|
|
703
|
+
* @param {any} config
|
|
704
|
+
* @param {number} row_index
|
|
705
|
+
* @returns {string}
|
|
706
|
+
*/
|
|
707
|
+
viewExpand(view_id, config, row_index) {
|
|
708
|
+
try {
|
|
709
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
710
|
+
const ptr0 = passStringToWasm0(view_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
711
|
+
const len0 = WASM_VECTOR_LEN;
|
|
712
|
+
wasm.genericsqlvirtualservermodel_viewExpand(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(config), row_index);
|
|
713
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
714
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
715
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
716
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
717
|
+
if (r3) {
|
|
718
|
+
throw takeObject(r2);
|
|
719
|
+
}
|
|
720
|
+
var v2 = getCachedStringFromWasm0(r0, r1);
|
|
721
|
+
if (r0 !== 0) { wasm.__wbindgen_export4(r0, r1, 1); }
|
|
722
|
+
return v2;
|
|
723
|
+
} finally {
|
|
724
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
725
|
+
}
|
|
726
|
+
}
|
|
664
727
|
/**
|
|
665
728
|
* Returns the SQL query to fetch data from a view with the given viewport.
|
|
666
729
|
* @param {string} view_id
|
|
@@ -774,6 +837,34 @@ export class GenericSQLVirtualServerModel {
|
|
|
774
837
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
775
838
|
}
|
|
776
839
|
}
|
|
840
|
+
/**
|
|
841
|
+
* Returns the `UPDATE` expanding exactly the rows whose path is no longer
|
|
842
|
+
* than `depth`.
|
|
843
|
+
* @param {string} view_id
|
|
844
|
+
* @param {any} config
|
|
845
|
+
* @param {number} depth
|
|
846
|
+
* @returns {string}
|
|
847
|
+
*/
|
|
848
|
+
viewSetDepth(view_id, config, depth) {
|
|
849
|
+
try {
|
|
850
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
851
|
+
const ptr0 = passStringToWasm0(view_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
852
|
+
const len0 = WASM_VECTOR_LEN;
|
|
853
|
+
wasm.genericsqlvirtualservermodel_viewSetDepth(retptr, this.__wbg_ptr, ptr0, len0, addHeapObject(config), depth);
|
|
854
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
855
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
856
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
857
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
858
|
+
if (r3) {
|
|
859
|
+
throw takeObject(r2);
|
|
860
|
+
}
|
|
861
|
+
var v2 = getCachedStringFromWasm0(r0, r1);
|
|
862
|
+
if (r0 !== 0) { wasm.__wbindgen_export4(r0, r1, 1); }
|
|
863
|
+
return v2;
|
|
864
|
+
} finally {
|
|
865
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
866
|
+
}
|
|
867
|
+
}
|
|
777
868
|
/**
|
|
778
869
|
* Returns the SQL query to get the row count of a view.
|
|
779
870
|
* @param {string} view_id
|
|
@@ -983,6 +1074,14 @@ export class Table {
|
|
|
983
1074
|
const ret = wasm.table_get_client(this.__wbg_ptr);
|
|
984
1075
|
return takeObject(ret);
|
|
985
1076
|
}
|
|
1077
|
+
/**
|
|
1078
|
+
* Returns the features supported by the server hosting this [`Table`].
|
|
1079
|
+
* @returns {Features}
|
|
1080
|
+
*/
|
|
1081
|
+
get_features() {
|
|
1082
|
+
const ret = wasm.table_get_features(this.__wbg_ptr);
|
|
1083
|
+
return takeObject(ret);
|
|
1084
|
+
}
|
|
986
1085
|
/**
|
|
987
1086
|
* Returns the name of the index column for the table.
|
|
988
1087
|
*
|
|
@@ -990,9 +1089,11 @@ export class Table {
|
|
|
990
1089
|
*
|
|
991
1090
|
* ```javascript
|
|
992
1091
|
* const table = await client.table("x,y\n1,2\n3,4", { index: "x" });
|
|
993
|
-
* const index = table.get_index(); // "x"
|
|
1092
|
+
* const index = await table.get_index(); // "x"
|
|
1093
|
+
* const table2 = await client.table(data, { index: ["x", "y"] });
|
|
1094
|
+
* const index2 = await table2.get_index(); // ["x", "y"]
|
|
994
1095
|
* ```
|
|
995
|
-
* @returns {
|
|
1096
|
+
* @returns {string | string[] | undefined}
|
|
996
1097
|
*/
|
|
997
1098
|
get_index() {
|
|
998
1099
|
const ret = wasm.table_get_index(this.__wbg_ptr);
|
|
@@ -1045,12 +1146,14 @@ export class Table {
|
|
|
1045
1146
|
* # Arguments
|
|
1046
1147
|
*
|
|
1047
1148
|
* - `indices` - A list of `index` column values for rows that should be
|
|
1048
|
-
* removed.
|
|
1149
|
+
* removed. For a composite `index`, each entry is an array of the index
|
|
1150
|
+
* column values in key order.
|
|
1049
1151
|
*
|
|
1050
1152
|
* # JavaScript Examples
|
|
1051
1153
|
*
|
|
1052
1154
|
* ```javascript
|
|
1053
1155
|
* await table.remove([1, 2, 3]);
|
|
1156
|
+
* await composite_table.remove([["AAPL", "Tech"], ["MSFT", "Tech"]]);
|
|
1054
1157
|
* ```
|
|
1055
1158
|
* @param {any} value
|
|
1056
1159
|
* @param {UpdateOptions | null} [options]
|
|
@@ -2186,7 +2289,7 @@ function __wbg_get_imports() {
|
|
|
2186
2289
|
const a = state0.a;
|
|
2187
2290
|
state0.a = 0;
|
|
2188
2291
|
try {
|
|
2189
|
-
return
|
|
2292
|
+
return __wasm_bindgen_func_elem_13265(a, state0.b, arg0, arg1);
|
|
2190
2293
|
} finally {
|
|
2191
2294
|
state0.a = a;
|
|
2192
2295
|
}
|
|
@@ -2261,7 +2364,7 @@ function __wbg_get_imports() {
|
|
|
2261
2364
|
const ret = Promise.resolve(getObject(arg0));
|
|
2262
2365
|
return addHeapObject(ret);
|
|
2263
2366
|
},
|
|
2264
|
-
|
|
2367
|
+
__wbg_run_2bb852e2dc558431: function() { return handleError(function (arg0, arg1) {
|
|
2265
2368
|
const ret = getObject(arg0).run(getObject(arg1));
|
|
2266
2369
|
return addHeapObject(ret);
|
|
2267
2370
|
}, arguments); },
|
|
@@ -2353,17 +2456,17 @@ function __wbg_get_imports() {
|
|
|
2353
2456
|
},
|
|
2354
2457
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
2355
2458
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 12, function: Function { arguments: [], shim_idx: 34, ret: NamedExternref("Promise<any>"), inner_ret: Some(NamedExternref("Promise<any>")) }, mutable: false }) -> Externref`.
|
|
2356
|
-
const ret = makeClosure(arg0, arg1, wasm.
|
|
2459
|
+
const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_1714, __wasm_bindgen_func_elem_2081);
|
|
2357
2460
|
return addHeapObject(ret);
|
|
2358
2461
|
},
|
|
2359
2462
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
2360
2463
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 12, function: Function { arguments: [], shim_idx: 35, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
2361
|
-
const ret = makeClosure(arg0, arg1, wasm.
|
|
2464
|
+
const ret = makeClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_1714, __wasm_bindgen_func_elem_2082);
|
|
2362
2465
|
return addHeapObject(ret);
|
|
2363
2466
|
},
|
|
2364
2467
|
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
2365
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2366
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
2468
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 633, function: Function { arguments: [Externref], shim_idx: 634, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2469
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_4747, __wasm_bindgen_func_elem_4749);
|
|
2367
2470
|
return addHeapObject(ret);
|
|
2368
2471
|
},
|
|
2369
2472
|
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
@@ -2440,21 +2543,21 @@ function __wbg_get_imports() {
|
|
|
2440
2543
|
};
|
|
2441
2544
|
}
|
|
2442
2545
|
|
|
2443
|
-
function
|
|
2444
|
-
wasm.
|
|
2546
|
+
function __wasm_bindgen_func_elem_2082(arg0, arg1) {
|
|
2547
|
+
wasm.__wasm_bindgen_func_elem_2082(arg0, arg1);
|
|
2445
2548
|
}
|
|
2446
2549
|
|
|
2447
|
-
function
|
|
2448
|
-
const ret = wasm.
|
|
2550
|
+
function __wasm_bindgen_func_elem_2081(arg0, arg1) {
|
|
2551
|
+
const ret = wasm.__wasm_bindgen_func_elem_2081(arg0, arg1);
|
|
2449
2552
|
return takeObject(ret);
|
|
2450
2553
|
}
|
|
2451
2554
|
|
|
2452
|
-
function
|
|
2453
|
-
wasm.
|
|
2555
|
+
function __wasm_bindgen_func_elem_4749(arg0, arg1, arg2) {
|
|
2556
|
+
wasm.__wasm_bindgen_func_elem_4749(arg0, arg1, addHeapObject(arg2));
|
|
2454
2557
|
}
|
|
2455
2558
|
|
|
2456
|
-
function
|
|
2457
|
-
wasm.
|
|
2559
|
+
function __wasm_bindgen_func_elem_13265(arg0, arg1, arg2, arg3) {
|
|
2560
|
+
wasm.__wasm_bindgen_func_elem_13265(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
2458
2561
|
}
|
|
2459
2562
|
|
|
2460
2563
|
const ClientFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
Binary file
|
|
@@ -31,12 +31,15 @@ export const genericsqlvirtualservermodel_tableDescribe: (a: number, b: number,
|
|
|
31
31
|
export const genericsqlvirtualservermodel_tableMakeView: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
32
32
|
export const genericsqlvirtualservermodel_tableSchema: (a: number, b: number, c: number, d: number) => void;
|
|
33
33
|
export const genericsqlvirtualservermodel_tableSize: (a: number, b: number, c: number, d: number) => void;
|
|
34
|
+
export const genericsqlvirtualservermodel_viewCollapse: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
34
35
|
export const genericsqlvirtualservermodel_viewColumnSize: (a: number, b: number, c: number, d: number) => void;
|
|
35
36
|
export const genericsqlvirtualservermodel_viewDelete: (a: number, b: number, c: number, d: number) => void;
|
|
37
|
+
export const genericsqlvirtualservermodel_viewExpand: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
36
38
|
export const genericsqlvirtualservermodel_viewGetData: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
37
39
|
export const genericsqlvirtualservermodel_viewGetMinMax: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
38
40
|
export const genericsqlvirtualservermodel_viewMakeTable: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number) => void;
|
|
39
41
|
export const genericsqlvirtualservermodel_viewSchema: (a: number, b: number, c: number, d: number) => void;
|
|
42
|
+
export const genericsqlvirtualservermodel_viewSetDepth: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
40
43
|
export const genericsqlvirtualservermodel_viewSize: (a: number, b: number, c: number, d: number) => void;
|
|
41
44
|
export const init: () => void;
|
|
42
45
|
export const proxysession_close: (a: number) => number;
|
|
@@ -48,6 +51,7 @@ export const table_columns: (a: number) => number;
|
|
|
48
51
|
export const table_delete: (a: number, b: number) => number;
|
|
49
52
|
export const table_describe: (a: number, b: number) => number;
|
|
50
53
|
export const table_get_client: (a: number) => number;
|
|
54
|
+
export const table_get_features: (a: number) => number;
|
|
51
55
|
export const table_get_index: (a: number) => number;
|
|
52
56
|
export const table_get_limit: (a: number) => number;
|
|
53
57
|
export const table_get_name: (a: number) => number;
|
|
@@ -99,12 +103,12 @@ export const virtualdataslice_setIntegerCol: (a: number, b: number, c: number, d
|
|
|
99
103
|
export const virtualdataslice_setStringCol: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
100
104
|
export const virtualserver_handleRequest: (a: number, b: number, c: number) => number;
|
|
101
105
|
export const virtualserver_new: (a: number, b: number) => void;
|
|
102
|
-
export const
|
|
103
|
-
export const
|
|
104
|
-
export const
|
|
105
|
-
export const
|
|
106
|
-
export const
|
|
107
|
-
export const
|
|
106
|
+
export const __wasm_bindgen_func_elem_1714: (a: number, b: number) => void;
|
|
107
|
+
export const __wasm_bindgen_func_elem_4747: (a: number, b: number) => void;
|
|
108
|
+
export const __wasm_bindgen_func_elem_13265: (a: number, b: number, c: number, d: number) => void;
|
|
109
|
+
export const __wasm_bindgen_func_elem_4749: (a: number, b: number, c: number) => void;
|
|
110
|
+
export const __wasm_bindgen_func_elem_2081: (a: number, b: number) => number;
|
|
111
|
+
export const __wasm_bindgen_func_elem_2082: (a: number, b: number) => void;
|
|
108
112
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
109
113
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
110
114
|
export const __wbindgen_export3: (a: number) => void;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Upgrade a persisted Perspective config to the current schema, returning
|
|
6
|
+
* `{value, notices, steps}`.
|
|
7
|
+
*/
|
|
8
|
+
export function migrate(kind: string, from: string | null | undefined, value: any): any;
|
|
9
|
+
|
|
10
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
11
|
+
|
|
12
|
+
export interface InitOutput {
|
|
13
|
+
readonly memory: WebAssembly.Memory;
|
|
14
|
+
readonly migrate: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
15
|
+
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
16
|
+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
17
|
+
readonly __wbindgen_export3: (a: number) => void;
|
|
18
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
25
|
+
* a precompiled `WebAssembly.Module`.
|
|
26
|
+
*
|
|
27
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
28
|
+
*
|
|
29
|
+
* @returns {InitOutput}
|
|
30
|
+
*/
|
|
31
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
35
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
36
|
+
*
|
|
37
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
38
|
+
*
|
|
39
|
+
* @returns {Promise<InitOutput>}
|
|
40
|
+
*/
|
|
41
|
+
export default function __wbg_init (module_or_path: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|