@sqlanvil/core 1.14.0 → 1.15.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/bundle.d.ts +377 -21
- package/bundle.js +1 -1
- package/configs.proto +6 -0
- package/core.proto +30 -0
- package/package.json +1 -1
package/configs.proto
CHANGED
|
@@ -129,6 +129,12 @@ message ConnectionConfig {
|
|
|
129
129
|
string database = 7;
|
|
130
130
|
// Optional. Postgres/Supabase default schema.
|
|
131
131
|
string default_schema = 8;
|
|
132
|
+
// Optional. Source read mode for a cross-warehouse source connection:
|
|
133
|
+
// "fdw" (default) — a live foreign-data-wrapper table (needs the Vault secret + wrappers).
|
|
134
|
+
// "runner-extract" — the CLI reads the source directly at run time and materializes the rows
|
|
135
|
+
// into a plain table (keyless; no Vault secret, no wrappers/postgis on the branch). BigQuery
|
|
136
|
+
// only for now. See the runner-extract action.
|
|
137
|
+
string mode = 10;
|
|
132
138
|
}
|
|
133
139
|
|
|
134
140
|
message DefaultIcebergConfig {
|
package/core.proto
CHANGED
|
@@ -309,6 +309,35 @@ message Import {
|
|
|
309
309
|
string jit_code = 13;
|
|
310
310
|
}
|
|
311
311
|
|
|
312
|
+
// A runner-extract source: the ref-able stand-in for a `connection:` declaration whose connection
|
|
313
|
+
// has `mode: "runner-extract"`. Instead of a live FDW foreign table, the CLI reads the source
|
|
314
|
+
// (keyless BigQuery) at run time and materializes the rows into this plain warehouse table. Synthesized
|
|
315
|
+
// by the compiler (users write a `connection:` declaration, not `type: "extract"`).
|
|
316
|
+
message Extract {
|
|
317
|
+
Target target = 1;
|
|
318
|
+
Target canonical_target = 2;
|
|
319
|
+
repeated Target dependency_targets = 3;
|
|
320
|
+
ActionHermeticity hermeticity = 4;
|
|
321
|
+
bool disabled = 5;
|
|
322
|
+
repeated string tags = 6;
|
|
323
|
+
ActionDescriptor action_descriptor = 7;
|
|
324
|
+
// The named connection this source reads through (keys into .df-credentials.json `connections`
|
|
325
|
+
// for the per-connection access token / key).
|
|
326
|
+
string connection_name = 8;
|
|
327
|
+
// Source platform ("bigquery").
|
|
328
|
+
string platform = 9;
|
|
329
|
+
// Source project + dataset + object name (BigQuery reads `project.dataset.source_name`).
|
|
330
|
+
string project = 10;
|
|
331
|
+
string dataset = 11;
|
|
332
|
+
string source_name = 12;
|
|
333
|
+
// BigQuery project that bills the extract query. Defaults to `project`.
|
|
334
|
+
string billing_project = 13;
|
|
335
|
+
// Column name -> SQL type, defining the materialized table (from `sqlanvil introspect`).
|
|
336
|
+
map<string, string> column_types = 14;
|
|
337
|
+
// Source .sqlx file path (generated).
|
|
338
|
+
string file_name = 15;
|
|
339
|
+
}
|
|
340
|
+
|
|
312
341
|
message Assertion {
|
|
313
342
|
Target target = 8;
|
|
314
343
|
Target canonical_target = 13;
|
|
@@ -479,6 +508,7 @@ message CompiledGraph {
|
|
|
479
508
|
repeated DataPreparation data_preparations = 13;
|
|
480
509
|
repeated Export exports = 14;
|
|
481
510
|
repeated Import imports = 16;
|
|
511
|
+
repeated Extract extracts = 17;
|
|
482
512
|
|
|
483
513
|
GraphErrors graph_errors = 7;
|
|
484
514
|
|