@query-farm/vgi 0.6.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/LICENSE +134 -0
- package/README.md +494 -0
- package/dist/__dbg.test-d.d.ts +1 -0
- package/dist/arguments/argument-spec.d.ts +51 -0
- package/dist/arguments/arguments.d.ts +13 -0
- package/dist/arrow/codec/branded.d.ts +83 -0
- package/dist/arrow/codec/registry.d.ts +29 -0
- package/dist/arrow/codec/repr.d.ts +23 -0
- package/dist/arrow/codec/type-descriptors.d.ts +109 -0
- package/dist/arrow/impl-arrowjs/build.d.ts +19 -0
- package/dist/arrow/impl-arrowjs/canonical.d.ts +15 -0
- package/dist/arrow/impl-arrowjs/empty.d.ts +7 -0
- package/dist/arrow/impl-arrowjs/filter.d.ts +11 -0
- package/dist/arrow/impl-arrowjs/index.d.ts +11 -0
- package/dist/arrow/impl-arrowjs/ipc.d.ts +24 -0
- package/dist/arrow/impl-arrowjs/iterate.d.ts +39 -0
- package/dist/arrow/impl-arrowjs/project.d.ts +10 -0
- package/dist/arrow/impl-arrowjs/schema.d.ts +62 -0
- package/dist/arrow/impl-arrowjs/statistics.d.ts +13 -0
- package/dist/arrow/impl-flechette/build.d.ts +14 -0
- package/dist/arrow/impl-flechette/canonical.d.ts +18 -0
- package/dist/arrow/impl-flechette/empty.d.ts +9 -0
- package/dist/arrow/impl-flechette/filter.d.ts +10 -0
- package/dist/arrow/impl-flechette/index.d.ts +11 -0
- package/dist/arrow/impl-flechette/ipc.d.ts +33 -0
- package/dist/arrow/impl-flechette/iterate.d.ts +29 -0
- package/dist/arrow/impl-flechette/message-meta.d.ts +10 -0
- package/dist/arrow/impl-flechette/normalize-type.d.ts +11 -0
- package/dist/arrow/impl-flechette/project.d.ts +3 -0
- package/dist/arrow/impl-flechette/schema.d.ts +47 -0
- package/dist/arrow/impl-flechette/statistics.d.ts +13 -0
- package/dist/arrow/index.d.ts +11 -0
- package/dist/arrow/predicates.d.ts +47 -0
- package/dist/arrow/repr.test-d.d.ts +52 -0
- package/dist/arrow/schema-types.d.ts +71 -0
- package/dist/arrow/types.d.ts +57 -0
- package/dist/catalog/attach-option.d.ts +33 -0
- package/dist/catalog/attach-options.d.ts +30 -0
- package/dist/catalog/composite.d.ts +33 -0
- package/dist/catalog/descriptors.d.ts +154 -0
- package/dist/catalog/interface.d.ts +239 -0
- package/dist/catalog/read-only.d.ts +33 -0
- package/dist/client/client.d.ts +189 -0
- package/dist/client/errors.d.ts +26 -0
- package/dist/client/helpers.d.ts +12 -0
- package/dist/client/protocol.d.ts +16 -0
- package/dist/client/types.d.ts +125 -0
- package/dist/client-entry.d.ts +11 -0
- package/dist/client-entry.js +48 -0
- package/dist/client-entry.js.map +9 -0
- package/dist/codec/asd.d.ts +25 -0
- package/dist/crypto.d.ts +36 -0
- package/dist/errors.d.ts +24 -0
- package/dist/filter-pushdown/collector.d.ts +32 -0
- package/dist/filter-pushdown/deserialize.d.ts +16 -0
- package/dist/filter-pushdown/evaluate.d.ts +51 -0
- package/dist/filter-pushdown/index.d.ts +4 -0
- package/dist/filter-pushdown/types.d.ts +84 -0
- package/dist/functions/aggregate.d.ts +129 -0
- package/dist/functions/copy-from.d.ts +81 -0
- package/dist/functions/copy-to.d.ts +121 -0
- package/dist/functions/registry.d.ts +16 -0
- package/dist/functions/scalar.d.ts +98 -0
- package/dist/functions/storage-cf-do.d.ts +47 -0
- package/dist/functions/storage.d.ts +86 -0
- package/dist/functions/table-buffering.d.ts +99 -0
- package/dist/functions/table-in-out.d.ts +64 -0
- package/dist/functions/table.d.ts +118 -0
- package/dist/functions/types.d.ts +157 -0
- package/dist/generated/vgi-client.d.ts +466 -0
- package/dist/generated/vgi-protocol-schemas.d.ts +115 -0
- package/dist/index.core.d.ts +42 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +10888 -0
- package/dist/index.js.map +85 -0
- package/dist/metadata/resolve.d.ts +3 -0
- package/dist/metadata/serialize.d.ts +12 -0
- package/dist/metadata/types.d.ts +47 -0
- package/dist/protocol/dispatch.d.ts +23 -0
- package/dist/protocol/handlers/aggregate.d.ts +3 -0
- package/dist/protocol/handlers/catalog/admin.d.ts +3 -0
- package/dist/protocol/handlers/catalog/index.d.ts +3 -0
- package/dist/protocol/handlers/catalog/index_methods.d.ts +3 -0
- package/dist/protocol/handlers/catalog/macro.d.ts +3 -0
- package/dist/protocol/handlers/catalog/shared.d.ts +70 -0
- package/dist/protocol/handlers/catalog/table.d.ts +3 -0
- package/dist/protocol/handlers/catalog/view.d.ts +3 -0
- package/dist/protocol/handlers/function.d.ts +8 -0
- package/dist/protocol/handlers/shared.d.ts +31 -0
- package/dist/protocol/handlers/table-buffering.d.ts +3 -0
- package/dist/protocol/serialize.d.ts +4 -0
- package/dist/protocol/serializers/arguments.d.ts +3 -0
- package/dist/protocol/serializers/bind.d.ts +9 -0
- package/dist/protocol/serializers/cardinality.d.ts +7 -0
- package/dist/protocol/serializers/init.d.ts +9 -0
- package/dist/protocol/serializers/shared.d.ts +12 -0
- package/dist/protocol/state-serializer.d.ts +23 -0
- package/dist/protocol/types.d.ts +129 -0
- package/dist/secrets/helpers.d.ts +15 -0
- package/dist/types.d.ts +52 -0
- package/dist/util/arrow/index.d.ts +1 -0
- package/dist/util/bytes.d.ts +2 -0
- package/dist/util/statistics.d.ts +7 -0
- package/dist/worker-cf-entry.d.ts +30 -0
- package/dist/worker-cf-entry.js +8767 -0
- package/dist/worker-cf-entry.js.map +74 -0
- package/dist/worker.d.ts +36 -0
- package/package.json +96 -0
- package/src/arguments/argument-spec.ts +200 -0
- package/src/arguments/arguments.ts +81 -0
- package/src/arrow/codec/branded.ts +206 -0
- package/src/arrow/codec/registry.ts +674 -0
- package/src/arrow/codec/repr.ts +181 -0
- package/src/arrow/codec/type-descriptors.ts +137 -0
- package/src/arrow/impl-arrowjs/build.ts +88 -0
- package/src/arrow/impl-arrowjs/canonical.ts +509 -0
- package/src/arrow/impl-arrowjs/empty.ts +72 -0
- package/src/arrow/impl-arrowjs/filter.ts +53 -0
- package/src/arrow/impl-arrowjs/index.ts +54 -0
- package/src/arrow/impl-arrowjs/ipc.ts +67 -0
- package/src/arrow/impl-arrowjs/iterate.ts +159 -0
- package/src/arrow/impl-arrowjs/project.ts +73 -0
- package/src/arrow/impl-arrowjs/schema.ts +256 -0
- package/src/arrow/impl-arrowjs/statistics.ts +185 -0
- package/src/arrow/impl-flechette/build.ts +65 -0
- package/src/arrow/impl-flechette/canonical.ts +289 -0
- package/src/arrow/impl-flechette/empty.ts +20 -0
- package/src/arrow/impl-flechette/filter.ts +42 -0
- package/src/arrow/impl-flechette/index.ts +54 -0
- package/src/arrow/impl-flechette/ipc.ts +110 -0
- package/src/arrow/impl-flechette/iterate.ts +121 -0
- package/src/arrow/impl-flechette/message-meta.ts +175 -0
- package/src/arrow/impl-flechette/normalize-type.ts +99 -0
- package/src/arrow/impl-flechette/project.ts +64 -0
- package/src/arrow/impl-flechette/schema.ts +202 -0
- package/src/arrow/impl-flechette/statistics.ts +198 -0
- package/src/arrow/index.ts +129 -0
- package/src/arrow/predicates.ts +66 -0
- package/src/arrow/repr.test-d.ts +189 -0
- package/src/arrow/schema-types.ts +213 -0
- package/src/arrow/types.ts +74 -0
- package/src/catalog/attach-option.ts +107 -0
- package/src/catalog/attach-options.ts +79 -0
- package/src/catalog/composite.ts +180 -0
- package/src/catalog/descriptors.ts +164 -0
- package/src/catalog/interface.ts +721 -0
- package/src/catalog/read-only.ts +909 -0
- package/src/client/client.ts +1348 -0
- package/src/client/errors.ts +69 -0
- package/src/client/helpers.ts +56 -0
- package/src/client/protocol.ts +33 -0
- package/src/client/types.ts +140 -0
- package/src/client-entry.ts +112 -0
- package/src/codec/asd.ts +147 -0
- package/src/crypto.ts +143 -0
- package/src/errors.ts +61 -0
- package/src/filter-pushdown/collector.ts +147 -0
- package/src/filter-pushdown/deserialize.ts +253 -0
- package/src/filter-pushdown/evaluate.ts +591 -0
- package/src/filter-pushdown/index.ts +28 -0
- package/src/filter-pushdown/types.ts +91 -0
- package/src/functions/aggregate.ts +384 -0
- package/src/functions/copy-from.ts +282 -0
- package/src/functions/copy-to.ts +319 -0
- package/src/functions/registry.ts +258 -0
- package/src/functions/scalar.ts +356 -0
- package/src/functions/storage-cf-do.ts +303 -0
- package/src/functions/storage.ts +521 -0
- package/src/functions/table-buffering.ts +562 -0
- package/src/functions/table-in-out.ts +373 -0
- package/src/functions/table.ts +521 -0
- package/src/functions/types.ts +192 -0
- package/src/generated/vgi-client.ts +560 -0
- package/src/generated/vgi-protocol-schemas.ts +864 -0
- package/src/index.core.ts +267 -0
- package/src/index.ts +11 -0
- package/src/metadata/resolve.ts +109 -0
- package/src/metadata/serialize.ts +242 -0
- package/src/metadata/types.ts +60 -0
- package/src/protocol/dispatch.ts +52 -0
- package/src/protocol/handlers/aggregate.ts +355 -0
- package/src/protocol/handlers/catalog/admin.ts +368 -0
- package/src/protocol/handlers/catalog/index.ts +25 -0
- package/src/protocol/handlers/catalog/index_methods.ts +65 -0
- package/src/protocol/handlers/catalog/macro.ts +114 -0
- package/src/protocol/handlers/catalog/shared.ts +291 -0
- package/src/protocol/handlers/catalog/table.ts +401 -0
- package/src/protocol/handlers/catalog/view.ts +119 -0
- package/src/protocol/handlers/function.ts +302 -0
- package/src/protocol/handlers/shared.ts +80 -0
- package/src/protocol/handlers/table-buffering.ts +207 -0
- package/src/protocol/serialize.ts +23 -0
- package/src/protocol/serializers/arguments.ts +160 -0
- package/src/protocol/serializers/bind.ts +212 -0
- package/src/protocol/serializers/cardinality.ts +45 -0
- package/src/protocol/serializers/init.ts +247 -0
- package/src/protocol/serializers/shared.ts +46 -0
- package/src/protocol/state-serializer.ts +181 -0
- package/src/protocol/types.ts +153 -0
- package/src/secrets/helpers.ts +70 -0
- package/src/types.ts +71 -0
- package/src/util/arrow/index.ts +23 -0
- package/src/util/bytes.ts +14 -0
- package/src/util/statistics.ts +40 -0
- package/src/worker-cf-entry.ts +172 -0
- package/src/worker.ts +212 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import type { VgiSchema, VgiBatch } from "../arrow/index.js";
|
|
2
|
+
import type { OutputCollector } from "@query-farm/vgi-rpc";
|
|
3
|
+
import type { FunctionStability, NullHandling, OrderPreservation, OrderDependence, DistinctDependence, TableCardinality } from "../types.js";
|
|
4
|
+
import type { BindRequest, BindResponse, InitRequest, GlobalInitResponse, TableFunctionCardinalityRequest } from "../protocol/types.js";
|
|
5
|
+
import type { ArgumentSpec } from "../arguments/argument-spec.js";
|
|
6
|
+
/** Convention for handler state: mutable user state lives in `.state`. */
|
|
7
|
+
export interface HandlerState<T = any> {
|
|
8
|
+
/** Serializable user state for HTTP exchange round-trips. */
|
|
9
|
+
state: T;
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export interface FunctionExample {
|
|
13
|
+
sql: string;
|
|
14
|
+
description: string;
|
|
15
|
+
expectedOutput?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface FunctionMeta {
|
|
18
|
+
name: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
stability?: FunctionStability;
|
|
21
|
+
nullHandling?: NullHandling;
|
|
22
|
+
examples?: FunctionExample[];
|
|
23
|
+
categories?: string[];
|
|
24
|
+
tags?: Record<string, string>;
|
|
25
|
+
projectionPushdown?: boolean;
|
|
26
|
+
filterPushdown?: boolean;
|
|
27
|
+
samplingPushdown?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* table (generator): opt in to DuckDB's late-materialization rewrite. A
|
|
30
|
+
* TOP_N/LIMIT/SAMPLE over a rowid-bearing table is rewritten into a SEMI
|
|
31
|
+
* join — a narrow ordering scan selects survivors, then the wide scan
|
|
32
|
+
* re-fetches their columns with the surviving rowids pushed down. Surfaces
|
|
33
|
+
* as FunctionInfo `late_materialization`. Only honoured by the C++ extension
|
|
34
|
+
* for tables whose worker also guarantees a UNIQUE, snapshot-stable rowid.
|
|
35
|
+
*/
|
|
36
|
+
lateMaterialization?: boolean;
|
|
37
|
+
supportedExpressionFilters?: string[];
|
|
38
|
+
autoApplyFilters?: boolean;
|
|
39
|
+
preservesOrder?: OrderPreservation;
|
|
40
|
+
maxWorkers?: number;
|
|
41
|
+
requiredSettings?: string[];
|
|
42
|
+
requiredSecrets?: string[];
|
|
43
|
+
orderDependent?: OrderDependence;
|
|
44
|
+
distinctDependent?: DistinctDependence;
|
|
45
|
+
/**
|
|
46
|
+
* For table_in_out functions: whether the user defined a finalize callback.
|
|
47
|
+
* DuckDB issues a separate FINALIZE init() phase only when this is true;
|
|
48
|
+
* otherwise calling FinalExecute is unsupported and crashes the C++ side.
|
|
49
|
+
*/
|
|
50
|
+
hasFinalize?: boolean;
|
|
51
|
+
/**
|
|
52
|
+
* table_buffering: force ParallelSink=false in the C++ operator
|
|
53
|
+
* (single-thread, source-ordered ingest).
|
|
54
|
+
*/
|
|
55
|
+
sinkOrderDependent?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* table_buffering: force serial Source drain in finalize_queue order
|
|
58
|
+
* (ParallelSource=false, SourceOrder=FIXED_ORDER).
|
|
59
|
+
*/
|
|
60
|
+
sourceOrderDependent?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* table_buffering: thread DuckDB's per-chunk batch_index into every
|
|
63
|
+
* process() call (RequiredPartitionInfo=BatchIndex).
|
|
64
|
+
*/
|
|
65
|
+
requiresInputBatchIndex?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* table (generator): the function tags every emitted Arrow batch with a
|
|
68
|
+
* per-partition `vgi_batch_index` so DuckDB's ordered sinks reassemble
|
|
69
|
+
* parallel output in partition order. Surfaces as FunctionInfo
|
|
70
|
+
* `supports_batch_index`.
|
|
71
|
+
*/
|
|
72
|
+
supportsBatchIndex?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* table (generator): Hive-style partition-columns mode. Functions declare
|
|
75
|
+
* a PartitionKind and annotate bind-schema fields; emitted batches carry
|
|
76
|
+
* `vgi_partition_values#b64` metadata. Surfaces as FunctionInfo
|
|
77
|
+
* `partition_kind`.
|
|
78
|
+
*/
|
|
79
|
+
partitionKind?: "NOT_PARTITIONED" | "SINGLE_VALUE_PARTITIONS" | "OVERLAPPING_PARTITIONS" | "DISJOINT_PARTITIONS";
|
|
80
|
+
/**
|
|
81
|
+
* COPY ... FROM custom format reader: the SQL `FORMAT` identifier this
|
|
82
|
+
* function backs (e.g. `example_lines`). Set by {@link defineCopyFromFunction}.
|
|
83
|
+
* When present, the catalog advertises this function via
|
|
84
|
+
* `copyFromFormats()` / the `catalog_copy_from_formats` RPC so the VGI
|
|
85
|
+
* extension registers a DuckDB CopyFunction for it. Mirrors vgi-python's
|
|
86
|
+
* `CopyFromFunction.COPY_FROM_FORMAT`.
|
|
87
|
+
*/
|
|
88
|
+
copyFromFormat?: string;
|
|
89
|
+
/** COPY direction; only `"from"` is supported today. Default `"from"`. */
|
|
90
|
+
copyFromDirection?: string;
|
|
91
|
+
/** Optional free-text comment surfaced by `vgi_copy_formats()`. */
|
|
92
|
+
copyFromComment?: string | null;
|
|
93
|
+
/**
|
|
94
|
+
* COPY ... TO custom format writer: the SQL `FORMAT` identifier this function
|
|
95
|
+
* backs (e.g. `example_lines_out`). Set by {@link defineCopyToFunction}. When
|
|
96
|
+
* present, the catalog advertises this function via `copyFromFormats()` (the
|
|
97
|
+
* `catalog_copy_from_formats` RPC returns all directions) so the VGI
|
|
98
|
+
* extension registers a DuckDB CopyFunction for it. The writer is a
|
|
99
|
+
* `table_buffering` function under the hood, reusing the
|
|
100
|
+
* `table_buffering_process` / `table_buffering_combine` RPCs. Mirrors
|
|
101
|
+
* vgi-python's `CopyToFunction.COPY_TO_FORMAT`.
|
|
102
|
+
*/
|
|
103
|
+
copyToFormat?: string;
|
|
104
|
+
/** COPY direction for a TO writer; always `"to"`. Default `"to"`. */
|
|
105
|
+
copyToDirection?: string;
|
|
106
|
+
/** Optional free-text comment surfaced by `vgi_copy_formats()`. */
|
|
107
|
+
copyToComment?: string | null;
|
|
108
|
+
}
|
|
109
|
+
export interface StreamHandlers {
|
|
110
|
+
producerInit?: () => any;
|
|
111
|
+
producerFn?: (state: any, out: OutputCollector) => void | Promise<void>;
|
|
112
|
+
exchangeInit?: () => any;
|
|
113
|
+
exchangeFn?: (state: any, input: VgiBatch, out: OutputCollector) => void | Promise<void>;
|
|
114
|
+
outputSchema: VgiSchema;
|
|
115
|
+
inputSchema?: VgiSchema;
|
|
116
|
+
/**
|
|
117
|
+
* Fires once per tick batch on the producer path, before `producerFn`.
|
|
118
|
+
* Receives the tick's Arrow custom metadata so the handler can pick up
|
|
119
|
+
* per-tick signals like `vgi_pushdown_filters` (dynamic filter updates
|
|
120
|
+
* from DuckDB's Top-N optimizer).
|
|
121
|
+
*/
|
|
122
|
+
onTick?: (state: any, tickMetadata: Map<string, string> | undefined) => void | Promise<void>;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* A resolved, registered VGI function definition.
|
|
126
|
+
*/
|
|
127
|
+
export interface VgiFunction {
|
|
128
|
+
kind: "scalar" | "table" | "table_in_out" | "table_buffering";
|
|
129
|
+
meta: FunctionMeta;
|
|
130
|
+
argumentSpecs: ArgumentSpec[];
|
|
131
|
+
/** Default output schema (for catalog registration). May be overridden at bind time. */
|
|
132
|
+
defaultOutputSchema?: VgiSchema;
|
|
133
|
+
bind(request: BindRequest): BindResponse | Promise<BindResponse>;
|
|
134
|
+
globalInit(request: InitRequest): GlobalInitResponse | Promise<GlobalInitResponse>;
|
|
135
|
+
createStreamHandlers(request: InitRequest, response: GlobalInitResponse, accumulatedState?: any): StreamHandlers;
|
|
136
|
+
cardinality?(request: TableFunctionCardinalityRequest): TableCardinality | Promise<TableCardinality>;
|
|
137
|
+
/**
|
|
138
|
+
* Per-column statistics for this table function's output given the user's
|
|
139
|
+
* bind-time arguments. Returns null/[] when stats are unknown. Wired to the
|
|
140
|
+
* `table_function_statistics` RPC; DuckDB uses the bounds for plan-time
|
|
141
|
+
* filter elimination.
|
|
142
|
+
*/
|
|
143
|
+
statistics?(request: TableFunctionCardinalityRequest): import("../util/statistics.js").ColumnStatistics[] | null;
|
|
144
|
+
/**
|
|
145
|
+
* Per-execution diagnostics for EXPLAIN ANALYZE. DuckDB calls this at
|
|
146
|
+
* pipeline FinishSource via the `table_function_dynamic_to_string` RPC.
|
|
147
|
+
* Returns ordered key→value strings; the C++ extension merges these with
|
|
148
|
+
* the intrinsic keys (Function, Rows Read, Threads).
|
|
149
|
+
*/
|
|
150
|
+
dynamicToString?(request: DynamicToStringRequest): Record<string, string> | Promise<Record<string, string>>;
|
|
151
|
+
}
|
|
152
|
+
/** Request bundle for the `table_function_dynamic_to_string` RPC. */
|
|
153
|
+
export interface DynamicToStringRequest {
|
|
154
|
+
bindCall: BindRequest;
|
|
155
|
+
bindOpaqueData: Uint8Array | null;
|
|
156
|
+
globalExecutionId: Uint8Array;
|
|
157
|
+
}
|
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
export type DistinctDependence = "DISTINCT_DEPENDENT" | "NOT_DISTINCT_DEPENDENT";
|
|
2
|
+
export type FunctionStability = "CONSISTENT" | "VOLATILE" | "CONSISTENT_WITHIN_QUERY";
|
|
3
|
+
export type FunctionType = "SCALAR" | "TABLE" | "TABLE_BUFFERING" | "AGGREGATE";
|
|
4
|
+
export type IndexConstraintType = "NONE" | "UNIQUE" | "PRIMARY";
|
|
5
|
+
export type InvocationFunctionType = "AGGREGATE" | "SCALAR" | "TABLE" | "TABLE_BUFFERING";
|
|
6
|
+
export type MacroType = "SCALAR" | "TABLE";
|
|
7
|
+
export type NullHandling = "DEFAULT" | "SPECIAL";
|
|
8
|
+
export type OnConflict = "ERROR" | "IGNORE" | "REPLACE";
|
|
9
|
+
export type OrderByDirection = "ASC" | "DESC";
|
|
10
|
+
export type OrderByNullOrder = "NULLS_FIRST" | "NULLS_LAST";
|
|
11
|
+
export type OrderDependence = "ORDER_DEPENDENT" | "NOT_ORDER_DEPENDENT";
|
|
12
|
+
export type OrderPreservation = "PRESERVES_ORDER" | "NO_ORDER_GUARANTEE" | "FIXED_ORDER";
|
|
13
|
+
export type PartitionKind = "NOT_PARTITIONED" | "SINGLE_VALUE_PARTITIONS" | "OVERLAPPING_PARTITIONS" | "DISJOINT_PARTITIONS";
|
|
14
|
+
export type SchemaObjectType = "TABLE" | "VIEW" | "SCALAR_FUNCTION" | "TABLE_FUNCTION" | "AGGREGATE_FUNCTION" | "SCALAR_MACRO" | "TABLE_MACRO" | "INDEX";
|
|
15
|
+
export type TableInOutFunctionInitPhase = "INPUT" | "FINALIZE" | "TABLE_BUFFERING" | "TABLE_BUFFERING_FINALIZE";
|
|
16
|
+
export interface CatalogDataVersionRelease {
|
|
17
|
+
version: string;
|
|
18
|
+
released_at?: bigint | null;
|
|
19
|
+
summary: string;
|
|
20
|
+
notes_url?: string | null;
|
|
21
|
+
}
|
|
22
|
+
export interface CatalogInfo {
|
|
23
|
+
name: string;
|
|
24
|
+
implementation_version?: string | null;
|
|
25
|
+
data_version_spec?: string | null;
|
|
26
|
+
attach_option_specs: Uint8Array[];
|
|
27
|
+
releases: CatalogDataVersionRelease[];
|
|
28
|
+
source_url?: string | null;
|
|
29
|
+
}
|
|
30
|
+
export interface SchemaInfo {
|
|
31
|
+
comment?: string | null;
|
|
32
|
+
tags: Record<string, string>;
|
|
33
|
+
attach_opaque_data: Uint8Array;
|
|
34
|
+
name: string;
|
|
35
|
+
estimated_object_count?: Record<string, number> | null;
|
|
36
|
+
}
|
|
37
|
+
export interface TableInfo {
|
|
38
|
+
comment?: string | null;
|
|
39
|
+
tags: Record<string, string>;
|
|
40
|
+
name: string;
|
|
41
|
+
schema_name: string;
|
|
42
|
+
columns: Uint8Array;
|
|
43
|
+
not_null_constraints: number[];
|
|
44
|
+
unique_constraints: number[][];
|
|
45
|
+
check_constraints: string[];
|
|
46
|
+
primary_key_constraints: number[][];
|
|
47
|
+
foreign_key_constraints: Uint8Array[];
|
|
48
|
+
supports_insert: boolean;
|
|
49
|
+
supports_update: boolean;
|
|
50
|
+
supports_delete: boolean;
|
|
51
|
+
supports_returning: boolean;
|
|
52
|
+
supports_column_statistics: boolean;
|
|
53
|
+
scan_function?: Uint8Array | null;
|
|
54
|
+
insert_function?: Uint8Array | null;
|
|
55
|
+
update_function?: Uint8Array | null;
|
|
56
|
+
delete_function?: Uint8Array | null;
|
|
57
|
+
cardinality_estimate?: number | null;
|
|
58
|
+
cardinality_max?: number | null;
|
|
59
|
+
column_statistics?: Uint8Array | null;
|
|
60
|
+
bind_result?: Uint8Array | null;
|
|
61
|
+
required_field_filter_paths: string[];
|
|
62
|
+
}
|
|
63
|
+
export interface ViewInfo {
|
|
64
|
+
comment?: string | null;
|
|
65
|
+
tags: Record<string, string>;
|
|
66
|
+
name: string;
|
|
67
|
+
schema_name: string;
|
|
68
|
+
definition: string;
|
|
69
|
+
column_comments: Record<string, string>;
|
|
70
|
+
}
|
|
71
|
+
export interface CatalogExample {
|
|
72
|
+
sql: string;
|
|
73
|
+
description: string;
|
|
74
|
+
expected_output?: string | null;
|
|
75
|
+
}
|
|
76
|
+
export interface SecretLookupEntry {
|
|
77
|
+
secret_type: string;
|
|
78
|
+
scope?: string | null;
|
|
79
|
+
secret_name?: string | null;
|
|
80
|
+
}
|
|
81
|
+
export interface FunctionInfo {
|
|
82
|
+
comment?: string | null;
|
|
83
|
+
tags: Record<string, string>;
|
|
84
|
+
name: string;
|
|
85
|
+
schema_name: string;
|
|
86
|
+
function_type: FunctionType;
|
|
87
|
+
arguments: Uint8Array;
|
|
88
|
+
output_schema: Uint8Array;
|
|
89
|
+
stability?: FunctionStability | null;
|
|
90
|
+
null_handling?: NullHandling | null;
|
|
91
|
+
description: string;
|
|
92
|
+
examples: CatalogExample[];
|
|
93
|
+
categories: string[];
|
|
94
|
+
projection_pushdown?: boolean | null;
|
|
95
|
+
filter_pushdown?: boolean | null;
|
|
96
|
+
sampling_pushdown?: boolean | null;
|
|
97
|
+
late_materialization?: boolean | null;
|
|
98
|
+
supported_expression_filters: string[];
|
|
99
|
+
order_preservation?: OrderPreservation | null;
|
|
100
|
+
max_workers?: number | null;
|
|
101
|
+
supports_batch_index: boolean;
|
|
102
|
+
partition_kind: PartitionKind;
|
|
103
|
+
order_dependent: OrderDependence;
|
|
104
|
+
distinct_dependent: DistinctDependence;
|
|
105
|
+
supports_window: boolean;
|
|
106
|
+
streaming_partitioned: boolean;
|
|
107
|
+
has_finalize: boolean;
|
|
108
|
+
source_order_dependent: boolean;
|
|
109
|
+
sink_order_dependent: boolean;
|
|
110
|
+
requires_input_batch_index: boolean;
|
|
111
|
+
required_settings: string[];
|
|
112
|
+
required_secrets: SecretLookupEntry[];
|
|
113
|
+
}
|
|
114
|
+
export interface MacroInfo {
|
|
115
|
+
comment?: string | null;
|
|
116
|
+
tags: Record<string, string>;
|
|
117
|
+
name: string;
|
|
118
|
+
schema_name: string;
|
|
119
|
+
macro_type: MacroType;
|
|
120
|
+
parameters: string[];
|
|
121
|
+
parameter_default_values?: /** @record-batch */ Uint8Array | null;
|
|
122
|
+
definition: string;
|
|
123
|
+
arguments_schema?: /** @arrow-schema */ Uint8Array | null;
|
|
124
|
+
}
|
|
125
|
+
export interface IndexInfo {
|
|
126
|
+
comment?: string | null;
|
|
127
|
+
tags: Record<string, string>;
|
|
128
|
+
name: string;
|
|
129
|
+
schema_name: string;
|
|
130
|
+
table_name: string;
|
|
131
|
+
index_type: string;
|
|
132
|
+
constraint_type: IndexConstraintType;
|
|
133
|
+
expressions: string[];
|
|
134
|
+
options: Record<string, string>;
|
|
135
|
+
}
|
|
136
|
+
export interface AggregateBindRequest {
|
|
137
|
+
function_name: string;
|
|
138
|
+
arguments: Uint8Array;
|
|
139
|
+
input_schema?: /** @arrow-schema */ Uint8Array | null;
|
|
140
|
+
settings?: /** @record-batch */ Uint8Array | null;
|
|
141
|
+
secrets?: /** @record-batch */ Uint8Array | null;
|
|
142
|
+
attach_opaque_data?: Uint8Array | null;
|
|
143
|
+
}
|
|
144
|
+
export interface AggregateBindResponse {
|
|
145
|
+
output_schema: Uint8Array;
|
|
146
|
+
execution_id: Uint8Array;
|
|
147
|
+
}
|
|
148
|
+
export interface AggregateCombineRequest {
|
|
149
|
+
function_name: string;
|
|
150
|
+
execution_id: Uint8Array;
|
|
151
|
+
merge_batch: Uint8Array;
|
|
152
|
+
attach_opaque_data?: Uint8Array | null;
|
|
153
|
+
}
|
|
154
|
+
export interface AggregateCombineResponse {
|
|
155
|
+
}
|
|
156
|
+
export interface AggregateDestructorRequest {
|
|
157
|
+
function_name: string;
|
|
158
|
+
execution_id: Uint8Array;
|
|
159
|
+
group_ids_batch: Uint8Array;
|
|
160
|
+
attach_opaque_data?: Uint8Array | null;
|
|
161
|
+
}
|
|
162
|
+
export interface AggregateDestructorResponse {
|
|
163
|
+
}
|
|
164
|
+
export interface AggregateFinalizeRequest {
|
|
165
|
+
function_name: string;
|
|
166
|
+
execution_id: Uint8Array;
|
|
167
|
+
group_ids_batch: Uint8Array;
|
|
168
|
+
output_schema: Uint8Array;
|
|
169
|
+
attach_opaque_data?: Uint8Array | null;
|
|
170
|
+
}
|
|
171
|
+
export interface AggregateFinalizeResponse {
|
|
172
|
+
result_batch: Uint8Array;
|
|
173
|
+
}
|
|
174
|
+
export interface AggregateStreamingChunkRequest {
|
|
175
|
+
function_name: string;
|
|
176
|
+
execution_id: Uint8Array;
|
|
177
|
+
input_batch: Uint8Array;
|
|
178
|
+
attach_opaque_data?: Uint8Array | null;
|
|
179
|
+
}
|
|
180
|
+
export interface AggregateStreamingChunkResponse {
|
|
181
|
+
result_batch: Uint8Array;
|
|
182
|
+
}
|
|
183
|
+
export interface AggregateStreamingCloseRequest {
|
|
184
|
+
function_name: string;
|
|
185
|
+
execution_id: Uint8Array;
|
|
186
|
+
attach_opaque_data?: Uint8Array | null;
|
|
187
|
+
}
|
|
188
|
+
export interface AggregateStreamingCloseResponse {
|
|
189
|
+
}
|
|
190
|
+
export interface AggregateStreamingOpenRequest {
|
|
191
|
+
function_name: string;
|
|
192
|
+
arguments: Uint8Array;
|
|
193
|
+
input_schema: Uint8Array;
|
|
194
|
+
partition_key_count: number;
|
|
195
|
+
order_key_count: number;
|
|
196
|
+
output_schema: Uint8Array;
|
|
197
|
+
settings?: /** @record-batch */ Uint8Array | null;
|
|
198
|
+
secrets?: /** @record-batch */ Uint8Array | null;
|
|
199
|
+
attach_opaque_data?: Uint8Array | null;
|
|
200
|
+
}
|
|
201
|
+
export interface AggregateStreamingOpenResponse {
|
|
202
|
+
execution_id: Uint8Array;
|
|
203
|
+
}
|
|
204
|
+
export interface AggregateUpdateRequest {
|
|
205
|
+
function_name: string;
|
|
206
|
+
execution_id: Uint8Array;
|
|
207
|
+
input_batch: Uint8Array;
|
|
208
|
+
attach_opaque_data?: Uint8Array | null;
|
|
209
|
+
}
|
|
210
|
+
export interface AggregateUpdateResponse {
|
|
211
|
+
}
|
|
212
|
+
export interface AggregateWindowRequest {
|
|
213
|
+
function_name: string;
|
|
214
|
+
execution_id: Uint8Array;
|
|
215
|
+
partition_id: number;
|
|
216
|
+
rid: number;
|
|
217
|
+
frame_starts: number[];
|
|
218
|
+
frame_ends: number[];
|
|
219
|
+
attach_opaque_data?: Uint8Array | null;
|
|
220
|
+
}
|
|
221
|
+
export interface AggregateWindowResponse {
|
|
222
|
+
result_batch: Uint8Array;
|
|
223
|
+
}
|
|
224
|
+
export interface AggregateWindowBatchRequest {
|
|
225
|
+
function_name: string;
|
|
226
|
+
execution_id: Uint8Array;
|
|
227
|
+
partition_id: number;
|
|
228
|
+
row_idx: number;
|
|
229
|
+
count: number;
|
|
230
|
+
frames_per_row: number[];
|
|
231
|
+
frame_starts: number[];
|
|
232
|
+
frame_ends: number[];
|
|
233
|
+
attach_opaque_data?: Uint8Array | null;
|
|
234
|
+
}
|
|
235
|
+
export interface AggregateWindowBatchResponse {
|
|
236
|
+
result_batch: Uint8Array;
|
|
237
|
+
}
|
|
238
|
+
export interface AggregateWindowDestructorRequest {
|
|
239
|
+
function_name: string;
|
|
240
|
+
execution_id: Uint8Array;
|
|
241
|
+
partition_id: number;
|
|
242
|
+
attach_opaque_data?: Uint8Array | null;
|
|
243
|
+
}
|
|
244
|
+
export interface AggregateWindowDestructorResponse {
|
|
245
|
+
}
|
|
246
|
+
export interface AggregateWindowInitRequest {
|
|
247
|
+
function_name: string;
|
|
248
|
+
execution_id: Uint8Array;
|
|
249
|
+
partition_id: number;
|
|
250
|
+
row_count: number;
|
|
251
|
+
partition_batch: Uint8Array;
|
|
252
|
+
output_schema: Uint8Array;
|
|
253
|
+
filter_mask: Uint8Array;
|
|
254
|
+
frame_stats: Uint8Array;
|
|
255
|
+
all_valid: Uint8Array;
|
|
256
|
+
attach_opaque_data?: Uint8Array | null;
|
|
257
|
+
}
|
|
258
|
+
export interface AggregateWindowInitResponse {
|
|
259
|
+
}
|
|
260
|
+
export interface CopyFromContext {
|
|
261
|
+
format: string;
|
|
262
|
+
file_path: string;
|
|
263
|
+
expected_schema: Uint8Array;
|
|
264
|
+
}
|
|
265
|
+
export interface CopyToContext {
|
|
266
|
+
format: string;
|
|
267
|
+
file_path: string;
|
|
268
|
+
}
|
|
269
|
+
export interface BindRequest {
|
|
270
|
+
function_name: string;
|
|
271
|
+
arguments: Uint8Array;
|
|
272
|
+
function_type: InvocationFunctionType;
|
|
273
|
+
input_schema?: /** @arrow-schema */ Uint8Array | null;
|
|
274
|
+
settings?: /** @record-batch */ Uint8Array | null;
|
|
275
|
+
secrets?: /** @record-batch */ Uint8Array | null;
|
|
276
|
+
attach_opaque_data?: Uint8Array | null;
|
|
277
|
+
transaction_opaque_data?: Uint8Array | null;
|
|
278
|
+
resolved_secrets_provided: boolean;
|
|
279
|
+
at_unit?: string | null;
|
|
280
|
+
at_value?: string | null;
|
|
281
|
+
copy_from?: CopyFromContext | null;
|
|
282
|
+
copy_to?: CopyToContext | null;
|
|
283
|
+
}
|
|
284
|
+
export interface BindResponse {
|
|
285
|
+
output_schema: Uint8Array;
|
|
286
|
+
opaque_data?: Uint8Array | null;
|
|
287
|
+
lookup_secret_types: string[];
|
|
288
|
+
lookup_scopes: string[];
|
|
289
|
+
lookup_names: string[];
|
|
290
|
+
}
|
|
291
|
+
export interface CatalogAttachRequest {
|
|
292
|
+
name: string;
|
|
293
|
+
options?: /** @record-batch */ Uint8Array | null;
|
|
294
|
+
data_version_spec?: string | null;
|
|
295
|
+
implementation_version?: string | null;
|
|
296
|
+
}
|
|
297
|
+
export interface CatalogAttachResult {
|
|
298
|
+
attach_opaque_data: Uint8Array;
|
|
299
|
+
supports_transactions: boolean;
|
|
300
|
+
supports_time_travel: boolean;
|
|
301
|
+
catalog_version_frozen: boolean;
|
|
302
|
+
catalog_version: number;
|
|
303
|
+
attach_opaque_data_required: boolean;
|
|
304
|
+
default_schema: string;
|
|
305
|
+
settings: Uint8Array[];
|
|
306
|
+
secret_types: Uint8Array[];
|
|
307
|
+
comment?: string | null;
|
|
308
|
+
tags: Record<string, string>;
|
|
309
|
+
supports_column_statistics: boolean;
|
|
310
|
+
resolved_data_version?: string | null;
|
|
311
|
+
resolved_implementation_version?: string | null;
|
|
312
|
+
}
|
|
313
|
+
export interface CatalogsResponse {
|
|
314
|
+
items: CatalogInfo[];
|
|
315
|
+
}
|
|
316
|
+
export interface CopyFromFormatsResponse {
|
|
317
|
+
items: Uint8Array[];
|
|
318
|
+
}
|
|
319
|
+
export interface CatalogCreateRequest {
|
|
320
|
+
name: string;
|
|
321
|
+
on_conflict: OnConflict;
|
|
322
|
+
options?: /** @record-batch */ Uint8Array | null;
|
|
323
|
+
}
|
|
324
|
+
export interface IndexCreateRequest {
|
|
325
|
+
attach_opaque_data: Uint8Array;
|
|
326
|
+
schema_name: string;
|
|
327
|
+
name: string;
|
|
328
|
+
table_name: string;
|
|
329
|
+
index_type: string;
|
|
330
|
+
constraint_type: IndexConstraintType;
|
|
331
|
+
expressions: string[];
|
|
332
|
+
on_conflict: OnConflict;
|
|
333
|
+
options: Record<string, string>;
|
|
334
|
+
transaction_opaque_data?: Uint8Array | null;
|
|
335
|
+
}
|
|
336
|
+
export interface IndexesResponse {
|
|
337
|
+
items: IndexInfo[];
|
|
338
|
+
}
|
|
339
|
+
export interface MacroCreateRequest {
|
|
340
|
+
attach_opaque_data: Uint8Array;
|
|
341
|
+
schema_name: string;
|
|
342
|
+
name: string;
|
|
343
|
+
macro_type: MacroType;
|
|
344
|
+
parameters: string[];
|
|
345
|
+
definition: string;
|
|
346
|
+
on_conflict: OnConflict;
|
|
347
|
+
parameter_default_values?: /** @record-batch */ Uint8Array | null;
|
|
348
|
+
arguments_schema?: /** @arrow-schema */ Uint8Array | null;
|
|
349
|
+
transaction_opaque_data?: Uint8Array | null;
|
|
350
|
+
}
|
|
351
|
+
export interface MacrosResponse {
|
|
352
|
+
items: MacroInfo[];
|
|
353
|
+
}
|
|
354
|
+
export interface FunctionsResponse {
|
|
355
|
+
items: FunctionInfo[];
|
|
356
|
+
}
|
|
357
|
+
export interface TablesResponse {
|
|
358
|
+
items: TableInfo[];
|
|
359
|
+
}
|
|
360
|
+
export interface ViewsResponse {
|
|
361
|
+
items: ViewInfo[];
|
|
362
|
+
}
|
|
363
|
+
export interface SchemasResponse {
|
|
364
|
+
items: SchemaInfo[];
|
|
365
|
+
}
|
|
366
|
+
export interface TableCreateRequest {
|
|
367
|
+
attach_opaque_data: Uint8Array;
|
|
368
|
+
schema_name: string;
|
|
369
|
+
name: string;
|
|
370
|
+
columns: Uint8Array;
|
|
371
|
+
on_conflict: OnConflict;
|
|
372
|
+
not_null_constraints: number[];
|
|
373
|
+
unique_constraints: number[][];
|
|
374
|
+
check_constraints: string[];
|
|
375
|
+
primary_key_constraints: number[][];
|
|
376
|
+
foreign_key_constraints: Uint8Array[];
|
|
377
|
+
transaction_opaque_data?: Uint8Array | null;
|
|
378
|
+
}
|
|
379
|
+
export interface TransactionBeginResponse {
|
|
380
|
+
transaction_opaque_data?: Uint8Array | null;
|
|
381
|
+
}
|
|
382
|
+
export interface CatalogVersionResponse {
|
|
383
|
+
version: number;
|
|
384
|
+
}
|
|
385
|
+
export interface InitRequest {
|
|
386
|
+
bind_call: BindRequest;
|
|
387
|
+
output_schema: Uint8Array;
|
|
388
|
+
bind_opaque_data?: Uint8Array | null;
|
|
389
|
+
projection_ids?: number[] | null;
|
|
390
|
+
pushdown_filters?: /** @record-batch */ Uint8Array | null;
|
|
391
|
+
join_keys?: /** @record-batch */ Uint8Array[] | null;
|
|
392
|
+
phase?: TableInOutFunctionInitPhase | null;
|
|
393
|
+
finalize_state_id?: Uint8Array | null;
|
|
394
|
+
execution_id?: Uint8Array | null;
|
|
395
|
+
init_opaque_data?: Uint8Array | null;
|
|
396
|
+
order_by_column_name?: string | null;
|
|
397
|
+
order_by_direction?: OrderByDirection | null;
|
|
398
|
+
order_by_null_order?: OrderByNullOrder | null;
|
|
399
|
+
order_by_limit?: number | null;
|
|
400
|
+
tablesample_percentage?: number | null;
|
|
401
|
+
tablesample_seed?: number | null;
|
|
402
|
+
}
|
|
403
|
+
export interface TableBufferingCombineRequest {
|
|
404
|
+
function_name: string;
|
|
405
|
+
execution_id: Uint8Array;
|
|
406
|
+
state_ids: Uint8Array[];
|
|
407
|
+
attach_opaque_data?: Uint8Array | null;
|
|
408
|
+
transaction_id?: Uint8Array | null;
|
|
409
|
+
}
|
|
410
|
+
export interface TableBufferingCombineResponse {
|
|
411
|
+
finalize_state_ids: Uint8Array[];
|
|
412
|
+
}
|
|
413
|
+
export interface TableBufferingDestructorRequest {
|
|
414
|
+
function_name: string;
|
|
415
|
+
execution_id: Uint8Array;
|
|
416
|
+
attach_opaque_data?: Uint8Array | null;
|
|
417
|
+
transaction_id?: Uint8Array | null;
|
|
418
|
+
}
|
|
419
|
+
export interface TableBufferingDestructorResponse {
|
|
420
|
+
}
|
|
421
|
+
export interface TableBufferingProcessRequest {
|
|
422
|
+
function_name: string;
|
|
423
|
+
execution_id: Uint8Array;
|
|
424
|
+
input_batch: Uint8Array;
|
|
425
|
+
attach_opaque_data?: Uint8Array | null;
|
|
426
|
+
transaction_id?: Uint8Array | null;
|
|
427
|
+
batch_index?: number | null;
|
|
428
|
+
}
|
|
429
|
+
export interface TableBufferingProcessResponse {
|
|
430
|
+
state_id: Uint8Array;
|
|
431
|
+
}
|
|
432
|
+
export interface TableFunctionCardinalityRequest {
|
|
433
|
+
bind_call: BindRequest;
|
|
434
|
+
bind_opaque_data?: Uint8Array | null;
|
|
435
|
+
}
|
|
436
|
+
export interface TableCardinality {
|
|
437
|
+
estimate?: number | null;
|
|
438
|
+
max?: number | null;
|
|
439
|
+
}
|
|
440
|
+
export interface TableFunctionDynamicToStringRequest {
|
|
441
|
+
bind_call: BindRequest;
|
|
442
|
+
bind_opaque_data?: Uint8Array | null;
|
|
443
|
+
global_execution_id: Uint8Array;
|
|
444
|
+
}
|
|
445
|
+
export interface TableFunctionDynamicToStringResponse {
|
|
446
|
+
keys: string[];
|
|
447
|
+
values: string[];
|
|
448
|
+
}
|
|
449
|
+
export interface TableFunctionStatisticsRequest {
|
|
450
|
+
bind_call: BindRequest;
|
|
451
|
+
bind_opaque_data?: Uint8Array | null;
|
|
452
|
+
}
|
|
453
|
+
export declare const encodeCatalogInfo: (v: CatalogInfo) => Uint8Array;
|
|
454
|
+
export declare const decodeCatalogInfo: (b: Uint8Array) => CatalogInfo;
|
|
455
|
+
export declare const encodeFunctionInfo: (v: FunctionInfo) => Uint8Array;
|
|
456
|
+
export declare const decodeFunctionInfo: (b: Uint8Array) => FunctionInfo;
|
|
457
|
+
export declare const encodeIndexInfo: (v: IndexInfo) => Uint8Array;
|
|
458
|
+
export declare const decodeIndexInfo: (b: Uint8Array) => IndexInfo;
|
|
459
|
+
export declare const encodeMacroInfo: (v: MacroInfo) => Uint8Array;
|
|
460
|
+
export declare const decodeMacroInfo: (b: Uint8Array) => MacroInfo;
|
|
461
|
+
export declare const encodeSchemaInfo: (v: SchemaInfo) => Uint8Array;
|
|
462
|
+
export declare const decodeSchemaInfo: (b: Uint8Array) => SchemaInfo;
|
|
463
|
+
export declare const encodeTableInfo: (v: TableInfo) => Uint8Array;
|
|
464
|
+
export declare const decodeTableInfo: (b: Uint8Array) => TableInfo;
|
|
465
|
+
export declare const encodeViewInfo: (v: ViewInfo) => Uint8Array;
|
|
466
|
+
export declare const decodeViewInfo: (b: Uint8Array) => ViewInfo;
|