@query-farm/vgi 0.46.0 → 0.47.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 +11 -5
- package/dist/arrow/impl-arrowjs/index.d.ts +1 -1
- package/dist/arrow/impl-arrowjs/iterate.d.ts +2 -0
- package/dist/arrow/impl-flechette/index.d.ts +1 -1
- package/dist/arrow/impl-flechette/iterate.d.ts +2 -0
- package/dist/arrow/index.d.ts +1 -1
- package/dist/catalog/column-expressions.d.ts +8 -0
- package/dist/catalog/column-metadata.d.ts +11 -0
- package/dist/catalog/composite.d.ts +2 -1
- package/dist/catalog/descriptors.d.ts +21 -29
- package/dist/catalog/interface.d.ts +15 -20
- package/dist/catalog/macro-overloads.d.ts +4 -0
- package/dist/catalog/read-only.d.ts +1 -1
- package/dist/catalog/unconstrained-columns.d.ts +2 -0
- package/dist/client/client.d.ts +18 -13
- package/dist/client-entry.js +753 -103
- package/dist/client-entry.js.map +16 -14
- package/dist/functions/projection.d.ts +18 -0
- package/dist/functions/table.d.ts +6 -1
- package/dist/functions/types.d.ts +1 -0
- package/dist/generated/vgi-client.d.ts +177 -36
- package/dist/generated/vgi-protocol-schemas.d.ts +51 -1
- package/dist/generated/vgi-protocol-types.d.ts +317 -3
- package/dist/generated/vgi-service.d.ts +266 -29
- package/dist/index.core.d.ts +2 -1
- package/dist/index.js +1480 -238
- package/dist/index.js.map +40 -34
- package/dist/protocol/dispatch.d.ts +9 -9
- package/dist/protocol/handlers/aggregate.d.ts +1 -1
- package/dist/protocol/handlers/catalog/index.d.ts +1 -1
- package/dist/protocol/handlers/catalog/metadata.d.ts +1 -0
- package/dist/protocol/handlers/function.d.ts +1 -1
- package/dist/protocol/handlers/table-buffering.d.ts +1 -1
- package/dist/protocol/handlers/unimplemented.d.ts +1 -1
- package/dist/protocol/serializers/bind.d.ts +5 -1
- package/dist/protocol/types.d.ts +5 -0
- package/dist/rpc-server.d.ts +6 -6
- package/dist/serve-entry.js +1593 -452
- package/dist/serve-entry.js.map +31 -26
- package/dist/util/arrow/index.d.ts +1 -1
- package/dist/worker-cf-entry.js +1814 -589
- package/dist/worker-cf-entry.js.map +39 -33
- package/dist/worker.d.ts +1 -1
- package/package.json +5 -4
- package/src/arrow/impl-arrowjs/index.ts +1 -1
- package/src/arrow/impl-arrowjs/iterate.ts +9 -1
- package/src/arrow/impl-arrowjs/project.ts +1 -1
- package/src/arrow/impl-flechette/index.ts +1 -1
- package/src/arrow/impl-flechette/ipc.ts +12 -0
- package/src/arrow/impl-flechette/iterate.ts +5 -0
- package/src/arrow/impl-flechette/project.ts +6 -8
- package/src/arrow/index.ts +1 -1
- package/src/catalog/column-expressions.ts +224 -0
- package/src/catalog/column-metadata.ts +151 -0
- package/src/catalog/composite.ts +5 -1
- package/src/catalog/contents-codec.ts +6 -1
- package/src/catalog/descriptors.ts +21 -29
- package/src/catalog/interface.ts +70 -55
- package/src/catalog/macro-overloads.ts +44 -0
- package/src/catalog/read-only.ts +63 -71
- package/src/catalog/unconstrained-columns.ts +23 -0
- package/src/client/client.ts +100 -58
- package/src/codec/asd.ts +3 -1
- package/src/functions/projection.ts +207 -0
- package/src/functions/table.ts +10 -0
- package/src/functions/types.ts +1 -0
- package/src/generated/vgi-client.ts +199 -37
- package/src/generated/vgi-protocol-schemas.ts +455 -41
- package/src/generated/vgi-protocol-types.ts +879 -5
- package/src/generated/vgi-service.ts +514 -42
- package/src/http/client-bundle.ts +1 -1
- package/src/http/fetch.ts +1 -1
- package/src/index.core.ts +4 -0
- package/src/protocol/dispatch.ts +9 -9
- package/src/protocol/handlers/aggregate.ts +1 -1
- package/src/protocol/handlers/catalog/admin.ts +10 -5
- package/src/protocol/handlers/catalog/index.ts +2 -2
- package/src/protocol/handlers/catalog/macro.ts +6 -5
- package/src/protocol/handlers/catalog/metadata.ts +16 -0
- package/src/protocol/handlers/catalog/table.ts +72 -26
- package/src/protocol/handlers/catalog/view.ts +24 -3
- package/src/protocol/handlers/function.ts +67 -1
- package/src/protocol/handlers/table-buffering.ts +1 -1
- package/src/protocol/handlers/unimplemented.ts +6 -6
- package/src/protocol/serializers/bind.ts +17 -1
- package/src/protocol/types.ts +6 -0
- package/src/rpc-server.ts +9 -9
- package/src/util/arrow/index.ts +1 -1
- package/src/worker.ts +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { type CallContext, type ExchangeFn, type ExternalRef, type ExchangeInit, type HeaderInit, type ProducerFn, type ProducerInit, Protocol, type SchemaLike } from "@query-farm/vgi-rpc";
|
|
2
2
|
import { type VgiSchema } from "../arrow/index.js";
|
|
3
3
|
/** The protocol's wire name: the `vgi_rpc.protocol` routing key and the HTTP path segment. */
|
|
4
|
-
export declare const VGI_PROTOCOL_NAME = "vgi.
|
|
4
|
+
export declare const VGI_PROTOCOL_NAME = "vgi.v3";
|
|
5
5
|
/** The protocol's semver, stamped on every request by a client of this protocol. */
|
|
6
|
-
export declare const VGI_PROTOCOL_VERSION = "
|
|
6
|
+
export declare const VGI_PROTOCOL_VERSION = "3.0.0";
|
|
7
7
|
/** What a unary handler returns: the result row, now or later. */
|
|
8
8
|
export type VgiReply<T> = T | ExternalRef | Promise<T | ExternalRef>;
|
|
9
9
|
/** The result of a unary method with no `result` column. */
|
|
@@ -133,6 +133,13 @@ export interface CatalogCreateParams {
|
|
|
133
133
|
/** The packed `CatalogCreateRequest`, as its IPC bytes (`binary`). */
|
|
134
134
|
request: Uint8Array;
|
|
135
135
|
}
|
|
136
|
+
/** The params of `catalog_dependencies`, one property per params-schema column. */
|
|
137
|
+
export interface CatalogDependenciesParams {
|
|
138
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
139
|
+
attach_opaque_data: Uint8Array;
|
|
140
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
141
|
+
transaction_opaque_data: Uint8Array | null;
|
|
142
|
+
}
|
|
136
143
|
/** The params of `catalog_detach`, one property per params-schema column. */
|
|
137
144
|
export interface CatalogDetachParams {
|
|
138
145
|
/** The `attach_opaque_data` column (`binary`). */
|
|
@@ -174,6 +181,17 @@ export interface CatalogIndexGetParams {
|
|
|
174
181
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
175
182
|
transaction_opaque_data: Uint8Array | null;
|
|
176
183
|
}
|
|
184
|
+
/** The params of `catalog_index_option_definitions`, one property per params-schema column. */
|
|
185
|
+
export interface CatalogIndexOptionDefinitionsParams {
|
|
186
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
187
|
+
attach_opaque_data: Uint8Array;
|
|
188
|
+
/** The `table` column (`binary`). */
|
|
189
|
+
table: Uint8Array;
|
|
190
|
+
/** The `algorithm` column (`string`). */
|
|
191
|
+
algorithm: string;
|
|
192
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
193
|
+
transaction_opaque_data: Uint8Array | null;
|
|
194
|
+
}
|
|
177
195
|
/** The params of `catalog_macro_create`, one property per params-schema column. */
|
|
178
196
|
export interface CatalogMacroCreateParams {
|
|
179
197
|
/** The packed `MacroCreateRequest`, as its IPC bytes (`binary`). */
|
|
@@ -203,6 +221,44 @@ export interface CatalogMacroGetParams {
|
|
|
203
221
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
204
222
|
transaction_opaque_data: Uint8Array | null;
|
|
205
223
|
}
|
|
224
|
+
/** The params of `catalog_query_prepare`, one property per params-schema column. */
|
|
225
|
+
export interface CatalogQueryPrepareParams {
|
|
226
|
+
/** The packed `CatalogQueryPrepareRequest`, as its IPC bytes (`binary`). */
|
|
227
|
+
request: Uint8Array;
|
|
228
|
+
}
|
|
229
|
+
/** The params of `catalog_query_release`, one property per params-schema column. */
|
|
230
|
+
export interface CatalogQueryReleaseParams {
|
|
231
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
232
|
+
attach_opaque_data: Uint8Array;
|
|
233
|
+
/** The `prepared_query_token` column (`binary`). */
|
|
234
|
+
prepared_query_token: Uint8Array;
|
|
235
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
236
|
+
transaction_opaque_data: Uint8Array | null;
|
|
237
|
+
}
|
|
238
|
+
/** The params of `catalog_schema_alter_metadata`, one property per params-schema column. */
|
|
239
|
+
export interface CatalogSchemaAlterMetadataParams {
|
|
240
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
241
|
+
attach_opaque_data: Uint8Array;
|
|
242
|
+
/** The `path` column (`list<item: string>`). */
|
|
243
|
+
path: WireList<string | null>;
|
|
244
|
+
/** The `changes` column (`binary`). */
|
|
245
|
+
changes: Uint8Array;
|
|
246
|
+
/** The `ignore_not_found` column (`bool`). */
|
|
247
|
+
ignore_not_found: boolean;
|
|
248
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
249
|
+
transaction_opaque_data: Uint8Array | null;
|
|
250
|
+
}
|
|
251
|
+
/** The params of `catalog_schema_alter_options`, one property per params-schema column. */
|
|
252
|
+
export interface CatalogSchemaAlterOptionsParams {
|
|
253
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
254
|
+
attach_opaque_data: Uint8Array;
|
|
255
|
+
/** The `path` column (`list<item: string>`). */
|
|
256
|
+
path: WireList<string | null>;
|
|
257
|
+
/** The `changes` column (`binary`). */
|
|
258
|
+
changes: Uint8Array;
|
|
259
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
260
|
+
transaction_opaque_data: Uint8Array | null;
|
|
261
|
+
}
|
|
206
262
|
/** The params of `catalog_schema_contents_functions`, one property per params-schema column. */
|
|
207
263
|
export interface CatalogSchemaContentsFunctionsParams {
|
|
208
264
|
/** The `attach_opaque_data` column (`binary`). */
|
|
@@ -266,6 +322,8 @@ export interface CatalogSchemaCreateParams {
|
|
|
266
322
|
tags: WireMap | null;
|
|
267
323
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
268
324
|
transaction_opaque_data: Uint8Array | null;
|
|
325
|
+
/** The `options` column (`binary`, nullable). */
|
|
326
|
+
options: Uint8Array | null;
|
|
269
327
|
}
|
|
270
328
|
/** The params of `catalog_schema_drop`, one property per params-schema column. */
|
|
271
329
|
export interface CatalogSchemaDropParams {
|
|
@@ -289,6 +347,15 @@ export interface CatalogSchemaGetParams {
|
|
|
289
347
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
290
348
|
transaction_opaque_data: Uint8Array | null;
|
|
291
349
|
}
|
|
350
|
+
/** The params of `catalog_schema_option_definitions`, one property per params-schema column. */
|
|
351
|
+
export interface CatalogSchemaOptionDefinitionsParams {
|
|
352
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
353
|
+
attach_opaque_data: Uint8Array;
|
|
354
|
+
/** The `path` column (`list<item: string>`). */
|
|
355
|
+
path: WireList<string | null>;
|
|
356
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
357
|
+
transaction_opaque_data: Uint8Array | null;
|
|
358
|
+
}
|
|
292
359
|
/** The params of `catalog_schemas`, one property per params-schema column. */
|
|
293
360
|
export interface CatalogSchemasParams {
|
|
294
361
|
/** The `attach_opaque_data` column (`binary`). */
|
|
@@ -296,6 +363,32 @@ export interface CatalogSchemasParams {
|
|
|
296
363
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
297
364
|
transaction_opaque_data: Uint8Array | null;
|
|
298
365
|
}
|
|
366
|
+
/** The params of `catalog_table_alter_layout`, one property per params-schema column. */
|
|
367
|
+
export interface CatalogTableAlterLayoutParams {
|
|
368
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
369
|
+
attach_opaque_data: Uint8Array;
|
|
370
|
+
/** The `schema_path` column (`list<item: string>`). */
|
|
371
|
+
schema_path: WireList<string | null>;
|
|
372
|
+
/** The `name` column (`string`). */
|
|
373
|
+
name: string;
|
|
374
|
+
/** The `changes` column (`binary`). */
|
|
375
|
+
changes: Uint8Array;
|
|
376
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
377
|
+
transaction_opaque_data: Uint8Array | null;
|
|
378
|
+
}
|
|
379
|
+
/** The params of `catalog_table_alter_options`, one property per params-schema column. */
|
|
380
|
+
export interface CatalogTableAlterOptionsParams {
|
|
381
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
382
|
+
attach_opaque_data: Uint8Array;
|
|
383
|
+
/** The `schema_path` column (`list<item: string>`). */
|
|
384
|
+
schema_path: WireList<string | null>;
|
|
385
|
+
/** The `name` column (`string`). */
|
|
386
|
+
name: string;
|
|
387
|
+
/** The `changes` column (`binary`). */
|
|
388
|
+
changes: Uint8Array;
|
|
389
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
390
|
+
transaction_opaque_data: Uint8Array | null;
|
|
391
|
+
}
|
|
299
392
|
/** The params of `catalog_table_column_add`, one property per params-schema column. */
|
|
300
393
|
export interface CatalogTableColumnAddParams {
|
|
301
394
|
/** The `attach_opaque_data` column (`binary`). */
|
|
@@ -304,6 +397,8 @@ export interface CatalogTableColumnAddParams {
|
|
|
304
397
|
schema_path: WireList<string | null>;
|
|
305
398
|
/** The `name` column (`string`). */
|
|
306
399
|
name: string;
|
|
400
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
401
|
+
column_path: WireList<string | null>;
|
|
307
402
|
/** The `column_definition` column (`binary`). */
|
|
308
403
|
column_definition: Uint8Array;
|
|
309
404
|
/** The `ignore_not_found` column (`bool`). */
|
|
@@ -321,8 +416,8 @@ export interface CatalogTableColumnCommentSetParams {
|
|
|
321
416
|
schema_path: WireList<string | null>;
|
|
322
417
|
/** The `name` column (`string`). */
|
|
323
418
|
name: string;
|
|
324
|
-
/** The `
|
|
325
|
-
|
|
419
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
420
|
+
column_path: WireList<string | null>;
|
|
326
421
|
/** The `comment` column (`string`, nullable). */
|
|
327
422
|
comment: string | null;
|
|
328
423
|
/** The `ignore_not_found` column (`bool`). */
|
|
@@ -338,8 +433,8 @@ export interface CatalogTableColumnDefaultDropParams {
|
|
|
338
433
|
schema_path: WireList<string | null>;
|
|
339
434
|
/** The `name` column (`string`). */
|
|
340
435
|
name: string;
|
|
341
|
-
/** The `
|
|
342
|
-
|
|
436
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
437
|
+
column_path: WireList<string | null>;
|
|
343
438
|
/** The `ignore_not_found` column (`bool`). */
|
|
344
439
|
ignore_not_found: boolean;
|
|
345
440
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
@@ -353,10 +448,10 @@ export interface CatalogTableColumnDefaultSetParams {
|
|
|
353
448
|
schema_path: WireList<string | null>;
|
|
354
449
|
/** The `name` column (`string`). */
|
|
355
450
|
name: string;
|
|
356
|
-
/** The `
|
|
357
|
-
|
|
358
|
-
/** The `expression` column (`
|
|
359
|
-
expression:
|
|
451
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
452
|
+
column_path: WireList<string | null>;
|
|
453
|
+
/** The `expression` column (`binary`). */
|
|
454
|
+
expression: Uint8Array;
|
|
360
455
|
/** The `ignore_not_found` column (`bool`). */
|
|
361
456
|
ignore_not_found: boolean;
|
|
362
457
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
@@ -370,8 +465,8 @@ export interface CatalogTableColumnDropParams {
|
|
|
370
465
|
schema_path: WireList<string | null>;
|
|
371
466
|
/** The `name` column (`string`). */
|
|
372
467
|
name: string;
|
|
373
|
-
/** The `
|
|
374
|
-
|
|
468
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
469
|
+
column_path: WireList<string | null>;
|
|
375
470
|
/** The `ignore_not_found` column (`bool`). */
|
|
376
471
|
ignore_not_found: boolean;
|
|
377
472
|
/** The `if_column_exists` column (`bool`). */
|
|
@@ -389,8 +484,8 @@ export interface CatalogTableColumnRenameParams {
|
|
|
389
484
|
schema_path: WireList<string | null>;
|
|
390
485
|
/** The `name` column (`string`). */
|
|
391
486
|
name: string;
|
|
392
|
-
/** The `
|
|
393
|
-
|
|
487
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
488
|
+
column_path: WireList<string | null>;
|
|
394
489
|
/** The `new_column_name` column (`string`). */
|
|
395
490
|
new_column_name: string;
|
|
396
491
|
/** The `ignore_not_found` column (`bool`). */
|
|
@@ -417,10 +512,12 @@ export interface CatalogTableColumnTypeChangeParams {
|
|
|
417
512
|
schema_path: WireList<string | null>;
|
|
418
513
|
/** The `name` column (`string`). */
|
|
419
514
|
name: string;
|
|
515
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
516
|
+
column_path: WireList<string | null>;
|
|
420
517
|
/** The `column_definition` column (`binary`). */
|
|
421
518
|
column_definition: Uint8Array;
|
|
422
|
-
/** The `expression` column (`
|
|
423
|
-
expression:
|
|
519
|
+
/** The `expression` column (`binary`, nullable). */
|
|
520
|
+
expression: Uint8Array | null;
|
|
424
521
|
/** The `ignore_not_found` column (`bool`). */
|
|
425
522
|
ignore_not_found: boolean;
|
|
426
523
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
@@ -441,6 +538,11 @@ export interface CatalogTableCommentSetParams {
|
|
|
441
538
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
442
539
|
transaction_opaque_data: Uint8Array | null;
|
|
443
540
|
}
|
|
541
|
+
/** The params of `catalog_table_constraints_apply`, one property per params-schema column. */
|
|
542
|
+
export interface CatalogTableConstraintsApplyParams {
|
|
543
|
+
/** The packed `ConstraintsApplyRequest`, as its IPC bytes (`binary`). */
|
|
544
|
+
request: Uint8Array;
|
|
545
|
+
}
|
|
444
546
|
/** The params of `catalog_table_create`, one property per params-schema column. */
|
|
445
547
|
export interface CatalogTableCreateParams {
|
|
446
548
|
/** The packed `TableCreateRequest`, as its IPC bytes (`binary`). */
|
|
@@ -508,8 +610,8 @@ export interface CatalogTableNotNullDropParams {
|
|
|
508
610
|
schema_path: WireList<string | null>;
|
|
509
611
|
/** The `name` column (`string`). */
|
|
510
612
|
name: string;
|
|
511
|
-
/** The `
|
|
512
|
-
|
|
613
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
614
|
+
column_path: WireList<string | null>;
|
|
513
615
|
/** The `ignore_not_found` column (`bool`). */
|
|
514
616
|
ignore_not_found: boolean;
|
|
515
617
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
@@ -523,13 +625,24 @@ export interface CatalogTableNotNullSetParams {
|
|
|
523
625
|
schema_path: WireList<string | null>;
|
|
524
626
|
/** The `name` column (`string`). */
|
|
525
627
|
name: string;
|
|
526
|
-
/** The `
|
|
527
|
-
|
|
628
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
629
|
+
column_path: WireList<string | null>;
|
|
528
630
|
/** The `ignore_not_found` column (`bool`). */
|
|
529
631
|
ignore_not_found: boolean;
|
|
530
632
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
531
633
|
transaction_opaque_data: Uint8Array | null;
|
|
532
634
|
}
|
|
635
|
+
/** The params of `catalog_table_option_definitions`, one property per params-schema column. */
|
|
636
|
+
export interface CatalogTableOptionDefinitionsParams {
|
|
637
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
638
|
+
attach_opaque_data: Uint8Array;
|
|
639
|
+
/** The `schema_path` column (`list<item: string>`). */
|
|
640
|
+
schema_path: WireList<string | null>;
|
|
641
|
+
/** The `name` column (`string`). */
|
|
642
|
+
name: string;
|
|
643
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
644
|
+
transaction_opaque_data: Uint8Array | null;
|
|
645
|
+
}
|
|
533
646
|
/** The params of `catalog_table_rename`, one property per params-schema column. */
|
|
534
647
|
export interface CatalogTableRenameParams {
|
|
535
648
|
/** The `attach_opaque_data` column (`binary`). */
|
|
@@ -612,6 +725,23 @@ export interface CatalogVersionParams {
|
|
|
612
725
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
613
726
|
transaction_opaque_data: Uint8Array | null;
|
|
614
727
|
}
|
|
728
|
+
/** The params of `catalog_view_column_comment_set`, one property per params-schema column. */
|
|
729
|
+
export interface CatalogViewColumnCommentSetParams {
|
|
730
|
+
/** The `attach_opaque_data` column (`binary`). */
|
|
731
|
+
attach_opaque_data: Uint8Array;
|
|
732
|
+
/** The `schema_path` column (`list<item: string>`). */
|
|
733
|
+
schema_path: WireList<string | null>;
|
|
734
|
+
/** The `name` column (`string`). */
|
|
735
|
+
name: string;
|
|
736
|
+
/** The `column_path` column (`list<item: string>`). */
|
|
737
|
+
column_path: WireList<string | null>;
|
|
738
|
+
/** The `comment` column (`string`, nullable). */
|
|
739
|
+
comment: string | null;
|
|
740
|
+
/** The `ignore_not_found` column (`bool`). */
|
|
741
|
+
ignore_not_found: boolean;
|
|
742
|
+
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
743
|
+
transaction_opaque_data: Uint8Array | null;
|
|
744
|
+
}
|
|
615
745
|
/** The params of `catalog_view_comment_set`, one property per params-schema column. */
|
|
616
746
|
export interface CatalogViewCommentSetParams {
|
|
617
747
|
/** The `attach_opaque_data` column (`binary`). */
|
|
@@ -641,6 +771,16 @@ export interface CatalogViewCreateParams {
|
|
|
641
771
|
on_conflict: string;
|
|
642
772
|
/** The `transaction_opaque_data` column (`binary`, nullable). */
|
|
643
773
|
transaction_opaque_data: Uint8Array | null;
|
|
774
|
+
/** The `aliases` column (`list<item: string>`, nullable). */
|
|
775
|
+
aliases: WireList<string | null> | null;
|
|
776
|
+
/** The `security` column (`string`). */
|
|
777
|
+
security: string;
|
|
778
|
+
/** The `comment` column (`string`, nullable). */
|
|
779
|
+
comment: string | null;
|
|
780
|
+
/** The `tags` column (`map<string, string>`, nullable). */
|
|
781
|
+
tags: WireMap | null;
|
|
782
|
+
/** The `column_comments` column (`map<string, string>`, nullable). */
|
|
783
|
+
column_comments: WireMap | null;
|
|
644
784
|
}
|
|
645
785
|
/** The params of `catalog_view_drop`, one property per params-schema column. */
|
|
646
786
|
export interface CatalogViewDropParams {
|
|
@@ -718,18 +858,23 @@ export interface TableFunctionPlanParams {
|
|
|
718
858
|
/** The packed `TableFunctionPlanRequest`, as its IPC bytes (`binary`). */
|
|
719
859
|
request: Uint8Array;
|
|
720
860
|
}
|
|
861
|
+
/** The params of `table_function_projection`, one property per params-schema column. */
|
|
862
|
+
export interface TableFunctionProjectionParams {
|
|
863
|
+
/** The packed `TableFunctionProjectionRequest`, as its IPC bytes (`binary`). */
|
|
864
|
+
request: Uint8Array;
|
|
865
|
+
}
|
|
721
866
|
/** The params of `table_function_statistics`, one property per params-schema column. */
|
|
722
867
|
export interface TableFunctionStatisticsParams {
|
|
723
868
|
/** The packed `TableFunctionStatisticsRequest`, as its IPC bytes (`binary`). */
|
|
724
869
|
request: Uint8Array;
|
|
725
870
|
}
|
|
726
871
|
/**
|
|
727
|
-
* The `vgi.
|
|
872
|
+
* The `vgi.v3` protocol: every method a VGI worker serves, generated from the
|
|
728
873
|
* reference (`vgi.protocol.VgiProtocol` in vgi-python).
|
|
729
874
|
*
|
|
730
875
|
* The protocol is the unit of optionality: every method is registered, whether
|
|
731
876
|
* or not this worker implements it, so `vgi_rpc.Reflection.v1` reports one
|
|
732
|
-
* `vgi.
|
|
877
|
+
* `vgi.v3` hash in every SDK. Build an implementation by spreading handlers
|
|
733
878
|
* over {@link UNIMPLEMENTED_VGI_SERVICE}; register it with
|
|
734
879
|
* {@link registerVgiService}. Never change a signature here by hand:
|
|
735
880
|
* regenerate it, so the change comes from the protocol.
|
|
@@ -883,6 +1028,14 @@ export interface VgiService {
|
|
|
883
1028
|
* Wire method `catalog_create` (unary). Default: answers `UNIMPLEMENTED`.
|
|
884
1029
|
*/
|
|
885
1030
|
catalogCreate(params: CatalogCreateParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Read a complete dependency graph under vgi.catalog.dependencies.read.v1.
|
|
1033
|
+
*
|
|
1034
|
+
* Wire method `catalog_dependencies` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1035
|
+
*/
|
|
1036
|
+
catalogDependencies(params: CatalogDependenciesParams, ctx: CallContext): VgiReply<{
|
|
1037
|
+
result: Uint8Array;
|
|
1038
|
+
}>;
|
|
886
1039
|
/**
|
|
887
1040
|
* Detach from a catalog.
|
|
888
1041
|
*
|
|
@@ -915,6 +1068,14 @@ export interface VgiService {
|
|
|
915
1068
|
catalogIndexGet(params: CatalogIndexGetParams, ctx: CallContext): VgiReply<{
|
|
916
1069
|
result: Uint8Array;
|
|
917
1070
|
}>;
|
|
1071
|
+
/**
|
|
1072
|
+
* Discover typed option definitions for an exact table and algorithm.
|
|
1073
|
+
*
|
|
1074
|
+
* Wire method `catalog_index_option_definitions` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1075
|
+
*/
|
|
1076
|
+
catalogIndexOptionDefinitions(params: CatalogIndexOptionDefinitionsParams, ctx: CallContext): VgiReply<{
|
|
1077
|
+
result: Uint8Array;
|
|
1078
|
+
}>;
|
|
918
1079
|
/**
|
|
919
1080
|
* Create a new macro.
|
|
920
1081
|
*
|
|
@@ -935,6 +1096,32 @@ export interface VgiService {
|
|
|
935
1096
|
catalogMacroGet(params: CatalogMacroGetParams, ctx: CallContext): VgiReply<{
|
|
936
1097
|
result: Uint8Array;
|
|
937
1098
|
}>;
|
|
1099
|
+
/**
|
|
1100
|
+
* Authorize and describe the negotiated query or statement without executing it.
|
|
1101
|
+
*
|
|
1102
|
+
* Wire method `catalog_query_prepare` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1103
|
+
*/
|
|
1104
|
+
catalogQueryPrepare(params: CatalogQueryPrepareParams, ctx: CallContext): VgiReply<{
|
|
1105
|
+
result: Uint8Array;
|
|
1106
|
+
}>;
|
|
1107
|
+
/**
|
|
1108
|
+
* Idempotently release an owned preparation; existing executions retain their lifetime.
|
|
1109
|
+
*
|
|
1110
|
+
* Wire method `catalog_query_release` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1111
|
+
*/
|
|
1112
|
+
catalogQueryRelease(params: CatalogQueryReleaseParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1113
|
+
/**
|
|
1114
|
+
* Atomically apply a CatalogMetadataChanges patch under the selected DDL profile.
|
|
1115
|
+
*
|
|
1116
|
+
* Wire method `catalog_schema_alter_metadata` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1117
|
+
*/
|
|
1118
|
+
catalogSchemaAlterMetadata(params: CatalogSchemaAlterMetadataParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1119
|
+
/**
|
|
1120
|
+
* Atomically SET/RESET schema options under the selected capability.
|
|
1121
|
+
*
|
|
1122
|
+
* Wire method `catalog_schema_alter_options` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1123
|
+
*/
|
|
1124
|
+
catalogSchemaAlterOptions(params: CatalogSchemaAlterOptionsParams, ctx: CallContext): VgiReply<NoResult>;
|
|
938
1125
|
/**
|
|
939
1126
|
* List functions in a schema (scalar or table).
|
|
940
1127
|
*
|
|
@@ -995,6 +1182,14 @@ export interface VgiService {
|
|
|
995
1182
|
catalogSchemaGet(params: CatalogSchemaGetParams, ctx: CallContext): VgiReply<{
|
|
996
1183
|
result: Uint8Array;
|
|
997
1184
|
}>;
|
|
1185
|
+
/**
|
|
1186
|
+
* Discover literal option definitions for an existing or proposed schema.
|
|
1187
|
+
*
|
|
1188
|
+
* Wire method `catalog_schema_option_definitions` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1189
|
+
*/
|
|
1190
|
+
catalogSchemaOptionDefinitions(params: CatalogSchemaOptionDefinitionsParams, ctx: CallContext): VgiReply<{
|
|
1191
|
+
result: Uint8Array;
|
|
1192
|
+
}>;
|
|
998
1193
|
/**
|
|
999
1194
|
* List schemas in the catalog.
|
|
1000
1195
|
*
|
|
@@ -1003,6 +1198,18 @@ export interface VgiService {
|
|
|
1003
1198
|
catalogSchemas(params: CatalogSchemasParams, ctx: CallContext): VgiReply<{
|
|
1004
1199
|
result: Uint8Array;
|
|
1005
1200
|
}>;
|
|
1201
|
+
/**
|
|
1202
|
+
* Apply an IPC TableLayoutChange under its explicit existing-data mode.
|
|
1203
|
+
*
|
|
1204
|
+
* Wire method `catalog_table_alter_layout` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1205
|
+
*/
|
|
1206
|
+
catalogTableAlterLayout(params: CatalogTableAlterLayoutParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1207
|
+
/**
|
|
1208
|
+
* Apply an IPC OptionChanges record atomically.
|
|
1209
|
+
*
|
|
1210
|
+
* Wire method `catalog_table_alter_options` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1211
|
+
*/
|
|
1212
|
+
catalogTableAlterOptions(params: CatalogTableAlterOptionsParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1006
1213
|
/**
|
|
1007
1214
|
* Add a new column to a table.
|
|
1008
1215
|
*
|
|
@@ -1022,7 +1229,7 @@ export interface VgiService {
|
|
|
1022
1229
|
*/
|
|
1023
1230
|
catalogTableColumnDefaultDrop(params: CatalogTableColumnDefaultDropParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1024
1231
|
/**
|
|
1025
|
-
* Set
|
|
1232
|
+
* Set a column default using one canonical SqlExpression IPC record.
|
|
1026
1233
|
*
|
|
1027
1234
|
* Wire method `catalog_table_column_default_set` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1028
1235
|
*/
|
|
@@ -1050,7 +1257,7 @@ export interface VgiService {
|
|
|
1050
1257
|
result: Uint8Array | null;
|
|
1051
1258
|
}>;
|
|
1052
1259
|
/**
|
|
1053
|
-
* Change
|
|
1260
|
+
* Change a column type, optionally using canonical SqlExpression IPC.
|
|
1054
1261
|
*
|
|
1055
1262
|
* Wire method `catalog_table_column_type_change` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1056
1263
|
*/
|
|
@@ -1061,6 +1268,14 @@ export interface VgiService {
|
|
|
1061
1268
|
* Wire method `catalog_table_comment_set` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1062
1269
|
*/
|
|
1063
1270
|
catalogTableCommentSet(params: CatalogTableCommentSetParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1271
|
+
/**
|
|
1272
|
+
* Atomically apply canonical changes at the expected table revision.
|
|
1273
|
+
*
|
|
1274
|
+
* Wire method `catalog_table_constraints_apply` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1275
|
+
*/
|
|
1276
|
+
catalogTableConstraintsApply(params: CatalogTableConstraintsApplyParams, ctx: CallContext): VgiReply<{
|
|
1277
|
+
result: Uint8Array;
|
|
1278
|
+
}>;
|
|
1064
1279
|
/**
|
|
1065
1280
|
* Create a new table.
|
|
1066
1281
|
*
|
|
@@ -1111,6 +1326,14 @@ export interface VgiService {
|
|
|
1111
1326
|
* Wire method `catalog_table_not_null_set` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1112
1327
|
*/
|
|
1113
1328
|
catalogTableNotNullSet(params: CatalogTableNotNullSetParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1329
|
+
/**
|
|
1330
|
+
* Discover provider table-option definitions under the read profile.
|
|
1331
|
+
*
|
|
1332
|
+
* Wire method `catalog_table_option_definitions` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1333
|
+
*/
|
|
1334
|
+
catalogTableOptionDefinitions(params: CatalogTableOptionDefinitionsParams, ctx: CallContext): VgiReply<{
|
|
1335
|
+
result: Uint8Array;
|
|
1336
|
+
}>;
|
|
1114
1337
|
/**
|
|
1115
1338
|
* Rename a table.
|
|
1116
1339
|
*
|
|
@@ -1173,6 +1396,12 @@ export interface VgiService {
|
|
|
1173
1396
|
catalogVersion(params: CatalogVersionParams, ctx: CallContext): VgiReply<{
|
|
1174
1397
|
result: Uint8Array;
|
|
1175
1398
|
}>;
|
|
1399
|
+
/**
|
|
1400
|
+
* Set or clear a view output comment; column_path has one raw component.
|
|
1401
|
+
*
|
|
1402
|
+
* Wire method `catalog_view_column_comment_set` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1403
|
+
*/
|
|
1404
|
+
catalogViewColumnCommentSet(params: CatalogViewColumnCommentSetParams, ctx: CallContext): VgiReply<NoResult>;
|
|
1176
1405
|
/**
|
|
1177
1406
|
* Set or clear the comment on a view.
|
|
1178
1407
|
*
|
|
@@ -1265,6 +1494,14 @@ export interface VgiService {
|
|
|
1265
1494
|
tableFunctionPlan(params: TableFunctionPlanParams, ctx: CallContext): VgiReply<{
|
|
1266
1495
|
result: Uint8Array;
|
|
1267
1496
|
}>;
|
|
1497
|
+
/**
|
|
1498
|
+
* Accept optional scalar outputs before optimizer rewrite, or decline normally.
|
|
1499
|
+
*
|
|
1500
|
+
* Wire method `table_function_projection` (unary). Default: answers `UNIMPLEMENTED`.
|
|
1501
|
+
*/
|
|
1502
|
+
tableFunctionProjection(params: TableFunctionProjectionParams, ctx: CallContext): VgiReply<{
|
|
1503
|
+
result: Uint8Array;
|
|
1504
|
+
}>;
|
|
1268
1505
|
/**
|
|
1269
1506
|
* Return per-column statistics for a table function's output.
|
|
1270
1507
|
*
|
|
@@ -1276,7 +1513,7 @@ export interface VgiService {
|
|
|
1276
1513
|
result: Uint8Array | null;
|
|
1277
1514
|
}>;
|
|
1278
1515
|
}
|
|
1279
|
-
/** One `vgi.
|
|
1516
|
+
/** One `vgi.v3` method: its wire name, its `VgiService` member, and its schemas. */
|
|
1280
1517
|
export type VgiMethodSpec = {
|
|
1281
1518
|
readonly name: string;
|
|
1282
1519
|
readonly key: keyof VgiService;
|
|
@@ -1294,11 +1531,11 @@ export type VgiMethodSpec = {
|
|
|
1294
1531
|
readonly doc: string;
|
|
1295
1532
|
};
|
|
1296
1533
|
/**
|
|
1297
|
-
* Every `vgi.
|
|
1534
|
+
* Every `vgi.v3` method, sorted by wire name, with the reference's
|
|
1298
1535
|
* params / result / header schemas. This table is what
|
|
1299
1536
|
* {@link registerVgiService} registers, so it is what reflection hashes.
|
|
1300
1537
|
*/
|
|
1301
|
-
export declare const
|
|
1538
|
+
export declare const VGI_V3_METHODS: readonly VgiMethodSpec[];
|
|
1302
1539
|
/**
|
|
1303
1540
|
* A `VgiService` in which every method answers `UNIMPLEMENTED` /
|
|
1304
1541
|
* `method_not_implemented` with `"<method> is not implemented by this worker"`.
|
|
@@ -1307,8 +1544,8 @@ export declare const UNIMPLEMENTED_VGI_SERVICE: VgiService;
|
|
|
1307
1544
|
/** The message every unimplemented method answers with. */
|
|
1308
1545
|
export declare function unimplementedMessage(method: string): string;
|
|
1309
1546
|
/**
|
|
1310
|
-
* Register every `vgi.
|
|
1311
|
-
* from {@link
|
|
1547
|
+
* Register every `vgi.v3` method on *protocol*, with the reference's schemas
|
|
1548
|
+
* from {@link VGI_V3_METHODS} and the handlers from *service*.
|
|
1312
1549
|
*/
|
|
1313
1550
|
export declare function registerVgiService(protocol: Protocol, service: VgiService): Protocol;
|
|
1314
1551
|
/** A `Protocol` named {@link VGI_PROTOCOL_NAME} at {@link VGI_PROTOCOL_VERSION}, serving *service*. */
|
package/dist/index.core.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export { ReadOnlyCatalogInterface, READ_ONLY_ITEM_ATTACH_ID } from "./catalog/re
|
|
|
14
14
|
export { CompositeCatalogInterface } from "./catalog/composite.js";
|
|
15
15
|
export { FunctionRegistry } from "./functions/registry.js";
|
|
16
16
|
export { FunctionType, FunctionStability, NullHandling, ArgumentMonotonicity, OrderPreservation, OrderDependence, DistinctDependence, TableInOutPhase, DEFAULT_MAX_WORKERS, } from "./types.js";
|
|
17
|
-
export type { BindRequest, BindResponse, CopyFromContext, CopyToContext, InitRequest, GlobalInitResponse, TableCardinality, } from "./protocol/types.js";
|
|
17
|
+
export type { BindRequest, BindResponse, BindRepeatability, CopyFromContext, CopyToContext, InitRequest, GlobalInitResponse, TableCardinality, } from "./protocol/types.js";
|
|
18
18
|
export { Arguments } from "./arguments/arguments.js";
|
|
19
19
|
export { type ArgumentSpec, type ArgumentConstraints, argumentSpecsToSchema, schemaToArgumentSpecs, macroArgumentsSchema, macroParameterDocsFromSchema, formatRange, constraintSpecFields } from "./arguments/argument-spec.js";
|
|
20
20
|
export { VgiError, RowCountMismatchError, FunctionNotFoundError, CatalogReadOnlyError, CatalogNotFoundError, CatalogAlreadyExistsError, ArgumentValidationError, NoCatalogError, } from "./errors.js";
|
|
@@ -49,3 +49,4 @@ export { buildRpcServer, grantKeysFromArgv, INTROSPECT_PRINCIPALS_ENV, type Buil
|
|
|
49
49
|
export { AuthUnavailableError, GrantKeys, GrantRefusedError, IdentityUnavailableError, StatusError, } from "@query-farm/vgi-rpc";
|
|
50
50
|
export type { GrantMinter, IssuedGrant, TokenIdentity, TokenResolver } from "@query-farm/vgi-rpc";
|
|
51
51
|
export { normalizeSchemaPath, schemaPathDisplay, schemaPathKey, schemaPathsEqual, type SchemaPath } from "./schema-path.js";
|
|
52
|
+
export { SCALAR_PROJECTION_PROFILE, type ProjectionProposal, type ProjectionAcceptance } from "./functions/projection.js";
|