@sqlanvil/core 1.17.0 → 1.18.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
@@ -107,8 +107,9 @@ message Environment {
107
107
  // A named connection: the warehouse (read/write target) or a read-only source.
108
108
  message ConnectionConfig {
109
109
  // Optional. One of "bigquery", "postgres", "supabase", "mysql".
110
- // ("mysql" is supported by `sqlanvil introspect` for schema scaffolding; a runtime
111
- // cross-warehouse MySQL *source* bridge is not yet implemented — see issue #35.)
110
+ // MySQL/MariaDB sources are runner-extract only (no Postgres FDW for MySQL): the CLI reads
111
+ // the source at run time and materializes it into the write warehouse. `sqlanvil introspect`
112
+ // scaffolds declarations (columnTypes) from a MySQL source.
112
113
  string platform = 1;
113
114
  // Optional. BigQuery source default project.
114
115
  string project = 2;
@@ -121,19 +122,20 @@ message ConnectionConfig {
121
122
  // (e.g. `bigquery-public-data`): the FDW server's `project_id` becomes the billing
122
123
  // project and the foreign table reads the source via a full-FQN subquery.
123
124
  string billing_project = 9;
124
- // Optional. Postgres source host (non-secret; password lives in .df-credentials.json).
125
+ // Optional. Postgres/MySQL source host (non-secret; password lives in .df-credentials.json).
125
126
  string host = 5;
126
- // Optional. Postgres source port.
127
+ // Optional. Postgres/MySQL source port.
127
128
  uint32 port = 6;
128
- // Optional. Postgres source database name.
129
+ // Optional. Postgres/MySQL source database name.
129
130
  string database = 7;
130
131
  // Optional. Postgres/Supabase default schema.
131
132
  string default_schema = 8;
132
133
  // 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.
134
+ // "fdw" (default for bigquery/postgres/supabase) — a live foreign-data-wrapper table (needs
135
+ // the Vault secret + wrappers).
136
+ // "runner-extract" (default and only mode for mysql; also supported for bigquery) — the CLI
137
+ // reads the source directly at run time and materializes the rows into a plain table
138
+ // (keyless; no Vault secret, no wrappers/postgis on the branch). See the extract action.
137
139
  string mode = 10;
138
140
  }
139
141
 
package/core.proto CHANGED
@@ -324,7 +324,7 @@ message Extract {
324
324
  // The named connection this source reads through (keys into .df-credentials.json `connections`
325
325
  // for the per-connection access token / key).
326
326
  string connection_name = 8;
327
- // Source platform ("bigquery").
327
+ // Source platform ("bigquery" or "mysql").
328
328
  string platform = 9;
329
329
  // Source project + dataset + object name (BigQuery reads `project.dataset.source_name`).
330
330
  string project = 10;
@@ -336,6 +336,9 @@ message Extract {
336
336
  map<string, string> column_types = 14;
337
337
  // Source .sqlx file path (generated).
338
338
  string file_name = 15;
339
+ // Source database for platforms whose namespace is a database (MySQL reads
340
+ // `database.source_name`).
341
+ string database = 16;
339
342
  }
340
343
 
341
344
  message Assertion {
package/package.json CHANGED
@@ -34,7 +34,7 @@
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "version": "1.17.0",
37
+ "version": "1.18.0",
38
38
  "name": "@sqlanvil/core",
39
39
  "description": "sqlanvil core API.",
40
40
  "main": "bundle.js"