@query-farm/vgi 0.7.0 → 0.8.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/dist/catalog/descriptors.d.ts +6 -0
- package/dist/catalog/interface.d.ts +34 -0
- package/dist/generated/vgi-client.d.ts +1 -0
- package/dist/generated/vgi-protocol-schemas.d.ts +1 -0
- package/dist/index.js +36 -4
- package/dist/index.js.map +8 -8
- package/dist/worker-cf-entry.js +31 -3
- package/dist/worker-cf-entry.js.map +7 -7
- package/package.json +1 -1
- package/src/catalog/descriptors.ts +6 -0
- package/src/catalog/interface.ts +55 -1
- package/src/catalog/read-only.ts +6 -0
- package/src/client/client.ts +3 -0
- package/src/generated/vgi-client.ts +2 -1
- package/src/generated/vgi-protocol-schemas.ts +16 -1
- package/src/protocol/handlers/catalog/admin.ts +1 -0
package/dist/worker-cf-entry.js
CHANGED
|
@@ -3259,7 +3259,19 @@ var ScanBranchSchema = schema2([
|
|
|
3259
3259
|
field2("function_name", utf82(), false),
|
|
3260
3260
|
field2("arguments", binary2(), false),
|
|
3261
3261
|
field2("branch_filter", utf82(), true),
|
|
3262
|
-
field2("writable", bool2(), false)
|
|
3262
|
+
field2("writable", bool2(), false),
|
|
3263
|
+
field2("source_catalog", utf82(), true),
|
|
3264
|
+
field2("source_schema", utf82(), true),
|
|
3265
|
+
field2("source_table", utf82(), true)
|
|
3266
|
+
]);
|
|
3267
|
+
var AttachCatalogInfoSchema = schema2([
|
|
3268
|
+
field2("alias", utf82(), false),
|
|
3269
|
+
field2("target", utf82(), false),
|
|
3270
|
+
field2("db_type", utf82(), false),
|
|
3271
|
+
field2("options", map2(field2("key", utf82(), false), field2("value", utf82(), true), false), false),
|
|
3272
|
+
field2("hidden", bool2(), false),
|
|
3273
|
+
field2("required", bool2(), false),
|
|
3274
|
+
field2("secret_ref", utf82(), false)
|
|
3263
3275
|
]);
|
|
3264
3276
|
var AggregateBindResultSchema = schema2([
|
|
3265
3277
|
field2("output_schema", binary2(), false),
|
|
@@ -3303,6 +3315,7 @@ var CatalogAttachResultSchema = schema2([
|
|
|
3303
3315
|
field2("default_schema", utf82(), false),
|
|
3304
3316
|
field2("settings", list2(field2("item", binary2(), true)), false),
|
|
3305
3317
|
field2("secret_types", list2(field2("item", binary2(), true)), false),
|
|
3318
|
+
field2("attach_catalogs", list2(field2("item", binary2(), true)), false),
|
|
3306
3319
|
field2("comment", utf82(), true),
|
|
3307
3320
|
field2("tags", map2(field2("key", utf82(), false), field2("value", utf82(), true), false), false),
|
|
3308
3321
|
field2("supports_column_statistics", bool2(), false),
|
|
@@ -6199,12 +6212,24 @@ var encodeCopyFromFormatInfo = (v) => encodeASD(CopyFromFormatInfoSchema, {
|
|
|
6199
6212
|
description: v.description ?? "",
|
|
6200
6213
|
ordered: v.ordered ?? false
|
|
6201
6214
|
});
|
|
6215
|
+
var encodeAttachCatalogInfo = (v) => encodeASD(AttachCatalogInfoSchema, {
|
|
6216
|
+
alias: v.alias,
|
|
6217
|
+
target: v.target,
|
|
6218
|
+
db_type: v.db_type ?? "",
|
|
6219
|
+
options: v.options ?? {},
|
|
6220
|
+
hidden: v.hidden ?? false,
|
|
6221
|
+
required: v.required ?? false,
|
|
6222
|
+
secret_ref: v.secret_ref ?? ""
|
|
6223
|
+
});
|
|
6202
6224
|
function singleBranchResult(legacy) {
|
|
6203
6225
|
const branchBatch = batchFromColumns({
|
|
6204
6226
|
function_name: [legacy.function_name],
|
|
6205
6227
|
arguments: [toUint8Array(legacy.arguments)],
|
|
6206
6228
|
branch_filter: [null],
|
|
6207
|
-
writable: [false]
|
|
6229
|
+
writable: [false],
|
|
6230
|
+
source_catalog: [null],
|
|
6231
|
+
source_schema: [null],
|
|
6232
|
+
source_table: [null]
|
|
6208
6233
|
}, ScanBranchSchema);
|
|
6209
6234
|
return {
|
|
6210
6235
|
branches: [serializeBatch(branchBatch)],
|
|
@@ -6373,6 +6398,7 @@ function registerCatalogAdminMethods(protocol, getCatalog, signingKey) {
|
|
|
6373
6398
|
default_schema: result.default_schema ?? "main",
|
|
6374
6399
|
settings: result.settings ?? [],
|
|
6375
6400
|
secret_types: result.secret_types ?? [],
|
|
6401
|
+
attach_catalogs: result.attach_catalogs ?? [],
|
|
6376
6402
|
comment: result.comment ?? null,
|
|
6377
6403
|
tags: result.tags ?? {},
|
|
6378
6404
|
supports_column_statistics: result.supports_column_statistics ?? true,
|
|
@@ -7727,6 +7753,7 @@ class ReadOnlyCatalogInterface extends CatalogInterface {
|
|
|
7727
7753
|
this._attachments.set(name, attachOpaqueData);
|
|
7728
7754
|
const settings = (this._descriptor.settings ?? []).map((s) => serializeSetting(s));
|
|
7729
7755
|
const secretTypes = (this._descriptor.secretTypes ?? []).map((s) => serializeSecretType(s));
|
|
7756
|
+
const attachCatalogs = (this._descriptor.attachCatalogs ?? []).map((c) => encodeAttachCatalogInfo(c));
|
|
7730
7757
|
const hasTimeTravel = this._descriptor.schemas.some((s) => s.tables?.some((t) => t.supportsTimeTravel) ?? false);
|
|
7731
7758
|
return {
|
|
7732
7759
|
attach_opaque_data: attachOpaqueData,
|
|
@@ -7738,6 +7765,7 @@ class ReadOnlyCatalogInterface extends CatalogInterface {
|
|
|
7738
7765
|
default_schema: this._descriptor.defaultSchema ?? "main",
|
|
7739
7766
|
settings,
|
|
7740
7767
|
secret_types: secretTypes,
|
|
7768
|
+
attach_catalogs: attachCatalogs,
|
|
7741
7769
|
comment: this._descriptor.comment ?? null,
|
|
7742
7770
|
tags: this._descriptor.tags ?? {},
|
|
7743
7771
|
supports_column_statistics: true,
|
|
@@ -8764,4 +8792,4 @@ export {
|
|
|
8764
8792
|
Arguments
|
|
8765
8793
|
};
|
|
8766
8794
|
|
|
8767
|
-
//# debugId=
|
|
8795
|
+
//# debugId=0568832FD569353D64756E2164756E21
|