@sqlanvil/core 1.0.3 → 1.1.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/configs.proto CHANGED
@@ -84,6 +84,29 @@ message WorkflowSettings {
84
84
 
85
85
  // Optional. The database warehouse to use, e.g. "bigquery", "postgres", "supabase".
86
86
  string warehouse = 17;
87
+
88
+ // Optional. Named connections (warehouse + read-only sources).
89
+ map<string, ConnectionConfig> connections = 18;
90
+ }
91
+
92
+ // A named connection: the warehouse (read/write target) or a read-only source.
93
+ message ConnectionConfig {
94
+ // Optional. One of "bigquery", "postgres", "supabase".
95
+ string platform = 1;
96
+ // Optional. BigQuery source default project.
97
+ string project = 2;
98
+ // Optional. BigQuery source default dataset.
99
+ string dataset = 3;
100
+ // Optional. Non-secret Vault secret id used in generated BigQuery FDW server DDL.
101
+ string sa_key_id = 4;
102
+ // Optional. Postgres source host (non-secret; password lives in .df-credentials.json).
103
+ string host = 5;
104
+ // Optional. Postgres source port.
105
+ uint32 port = 6;
106
+ // Optional. Postgres source database name.
107
+ string database = 7;
108
+ // Optional. Postgres/Supabase default schema.
109
+ string default_schema = 8;
87
110
  }
88
111
 
89
112
  message DefaultIcebergConfig {
@@ -634,6 +657,14 @@ message ActionConfig {
634
657
 
635
658
  // A list of user-defined tags with which the action should be labeled.
636
659
  repeated string tags = 7;
660
+
661
+ // Optional. Name of a connection (from WorkflowSettings.connections) that this
662
+ // declaration reads from. Only valid on declarations.
663
+ string connection = 8;
664
+
665
+ // Optional. Column name -> SQL type, used to generate the foreign table when
666
+ // `connection` bridges via FDW. Distinct from `columns` (descriptions).
667
+ map<string, string> column_types = 9;
637
668
  }
638
669
 
639
670
  message NotebookConfig {
package/core.proto CHANGED
@@ -52,6 +52,10 @@ message ProjectConfig {
52
52
 
53
53
  bool include_tests_in_compiled_graph = 22;
54
54
 
55
+ map<string, ConnectionConfig> connections = 23;
56
+
57
+ string warehouse_connection = 24;
58
+
55
59
  reserved 3, 4, 6, 8, 10, 12, 13;
56
60
  }
57
61
 
package/package.json CHANGED
@@ -34,7 +34,7 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "version": "1.0.3",
37
+ "version": "1.1.0",
38
38
  "name": "@sqlanvil/core",
39
39
  "description": "sqlanvil core API.",
40
40
  "main": "bundle.js"