@sqlanvil/core 1.4.0 → 1.5.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 CHANGED
@@ -1,8 +1,8 @@
1
1
  # SQLAnvil
2
2
 
3
- **SQL workflow tool for BigQuery, Postgres, and Supabase.**
3
+ **SQL workflow tool for BigQuery, Postgres, Supabase, and MySQL/MariaDB.**
4
4
 
5
- SQLAnvil is an open-source fork of [Dataform OSS](https://github.com/dataform-co/dataform) (Apache 2.0), extended with first-class PostgreSQL and Supabase support. Define your data transformations in SQLX, have SQLAnvil compile them to idiomatic SQL, and run them against your warehouse.
5
+ SQLAnvil is an open-source fork of [Dataform OSS](https://github.com/dataform-co/dataform) (Apache 2.0), extended with first-class PostgreSQL, Supabase, and MySQL/MariaDB support. Define your data transformations in SQLX, have SQLAnvil compile them to idiomatic SQL, and run them against your warehouse.
6
6
 
7
7
  > **SQLAnvil is not affiliated with or endorsed by Google.** The Dataform name and related marks are trademarks of Google LLC. See [NOTICE](NOTICE) for attribution.
8
8
 
@@ -13,6 +13,7 @@ SQLAnvil is an open-source fork of [Dataform OSS](https://github.com/dataform-co
13
13
  - **BigQuery** — full support: partitioning, clustering, labels, materialized views, `MERGE`-based incremental upserts
14
14
  - **PostgreSQL** — idiomatic DDL: native partitioning, `INSERT ... ON CONFLICT` upserts, btree/gin/gist/brin indexes, tablespaces, fillfactor
15
15
  - **Supabase** — extends Postgres with RLS policies, Realtime publications, pgvector indexes, and Supabase Wrappers _(coming soon)_
16
+ - **MySQL / MariaDB** — portable MySQL DDL: CTAS tables, `CREATE OR REPLACE VIEW`, `ON DUPLICATE KEY UPDATE` incremental upserts (one adapter, validated against both engines)
16
17
  - **SQLX + YAML + JS** — three authoring modes: SQL with config blocks, `actions.yaml` bulk definitions, or the JavaScript API
17
18
 
18
19
  ---
package/bundle.d.ts CHANGED
@@ -5000,6 +5000,133 @@ namespace sqlanvil {
5000
5000
  public static getTypeUrl(typeUrlPrefix?: string): string;
5001
5001
  }
5002
5002
 
5003
+ /** Properties of a MysqlConnection. */
5004
+ interface IMysqlConnection {
5005
+
5006
+ /** MysqlConnection host */
5007
+ host?: (string|null);
5008
+
5009
+ /** MysqlConnection port */
5010
+ port?: (number|null);
5011
+
5012
+ /** MysqlConnection database */
5013
+ database?: (string|null);
5014
+
5015
+ /** MysqlConnection user */
5016
+ user?: (string|null);
5017
+
5018
+ /** MysqlConnection password */
5019
+ password?: (string|null);
5020
+
5021
+ /** MysqlConnection sslMode */
5022
+ sslMode?: (string|null);
5023
+ }
5024
+
5025
+ /** Represents a MysqlConnection. */
5026
+ class MysqlConnection implements IMysqlConnection {
5027
+
5028
+ /**
5029
+ * Constructs a new MysqlConnection.
5030
+ * @param [properties] Properties to set
5031
+ */
5032
+ constructor(properties?: sqlanvil.IMysqlConnection);
5033
+
5034
+ /** MysqlConnection host. */
5035
+ public host: string;
5036
+
5037
+ /** MysqlConnection port. */
5038
+ public port: number;
5039
+
5040
+ /** MysqlConnection database. */
5041
+ public database: string;
5042
+
5043
+ /** MysqlConnection user. */
5044
+ public user: string;
5045
+
5046
+ /** MysqlConnection password. */
5047
+ public password: string;
5048
+
5049
+ /** MysqlConnection sslMode. */
5050
+ public sslMode: string;
5051
+
5052
+ /**
5053
+ * Creates a new MysqlConnection instance using the specified properties.
5054
+ * @param [properties] Properties to set
5055
+ * @returns MysqlConnection instance
5056
+ */
5057
+ public static create(properties?: sqlanvil.IMysqlConnection): sqlanvil.MysqlConnection;
5058
+
5059
+ /**
5060
+ * Encodes the specified MysqlConnection message. Does not implicitly {@link sqlanvil.MysqlConnection.verify|verify} messages.
5061
+ * @param message MysqlConnection message or plain object to encode
5062
+ * @param [writer] Writer to encode to
5063
+ * @returns Writer
5064
+ */
5065
+ public static encode(message: sqlanvil.IMysqlConnection, writer?: $protobuf.Writer): $protobuf.Writer;
5066
+
5067
+ /**
5068
+ * Encodes the specified MysqlConnection message, length delimited. Does not implicitly {@link sqlanvil.MysqlConnection.verify|verify} messages.
5069
+ * @param message MysqlConnection message or plain object to encode
5070
+ * @param [writer] Writer to encode to
5071
+ * @returns Writer
5072
+ */
5073
+ public static encodeDelimited(message: sqlanvil.IMysqlConnection, writer?: $protobuf.Writer): $protobuf.Writer;
5074
+
5075
+ /**
5076
+ * Decodes a MysqlConnection message from the specified reader or buffer.
5077
+ * @param reader Reader or buffer to decode from
5078
+ * @param [length] Message length if known beforehand
5079
+ * @returns MysqlConnection
5080
+ * @throws {Error} If the payload is not a reader or valid buffer
5081
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5082
+ */
5083
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): sqlanvil.MysqlConnection;
5084
+
5085
+ /**
5086
+ * Decodes a MysqlConnection message from the specified reader or buffer, length delimited.
5087
+ * @param reader Reader or buffer to decode from
5088
+ * @returns MysqlConnection
5089
+ * @throws {Error} If the payload is not a reader or valid buffer
5090
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5091
+ */
5092
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): sqlanvil.MysqlConnection;
5093
+
5094
+ /**
5095
+ * Verifies a MysqlConnection message.
5096
+ * @param message Plain object to verify
5097
+ * @returns `null` if valid, otherwise the reason why it is not
5098
+ */
5099
+ public static verify(message: { [k: string]: any }): (string|null);
5100
+
5101
+ /**
5102
+ * Creates a MysqlConnection message from a plain object. Also converts values to their respective internal types.
5103
+ * @param object Plain object
5104
+ * @returns MysqlConnection
5105
+ */
5106
+ public static fromObject(object: { [k: string]: any }): sqlanvil.MysqlConnection;
5107
+
5108
+ /**
5109
+ * Creates a plain object from a MysqlConnection message. Also converts values to other types if specified.
5110
+ * @param message MysqlConnection
5111
+ * @param [options] Conversion options
5112
+ * @returns Plain object
5113
+ */
5114
+ public static toObject(message: sqlanvil.MysqlConnection, options?: $protobuf.IConversionOptions): { [k: string]: any };
5115
+
5116
+ /**
5117
+ * Converts this MysqlConnection to JSON.
5118
+ * @returns JSON object
5119
+ */
5120
+ public toJSON(): { [k: string]: any };
5121
+
5122
+ /**
5123
+ * Gets the default type url for MysqlConnection
5124
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
5125
+ * @returns The default type url
5126
+ */
5127
+ public static getTypeUrl(typeUrlPrefix?: string): string;
5128
+ }
5129
+
5003
5130
  /** Properties of a WarehouseConfig. */
5004
5131
  interface IWarehouseConfig {
5005
5132
 
@@ -5011,6 +5138,9 @@ namespace sqlanvil {
5011
5138
 
5012
5139
  /** WarehouseConfig supabase */
5013
5140
  supabase?: (sqlanvil.ISupabaseConnection|null);
5141
+
5142
+ /** WarehouseConfig mysql */
5143
+ mysql?: (sqlanvil.IMysqlConnection|null);
5014
5144
  }
5015
5145
 
5016
5146
  /** Represents a WarehouseConfig. */
@@ -5031,8 +5161,11 @@ namespace sqlanvil {
5031
5161
  /** WarehouseConfig supabase. */
5032
5162
  public supabase?: (sqlanvil.ISupabaseConnection|null);
5033
5163
 
5164
+ /** WarehouseConfig mysql. */
5165
+ public mysql?: (sqlanvil.IMysqlConnection|null);
5166
+
5034
5167
  /** WarehouseConfig connection. */
5035
- public connection?: ("bigquery"|"postgres"|"supabase");
5168
+ public connection?: ("bigquery"|"postgres"|"supabase"|"mysql");
5036
5169
 
5037
5170
  /**
5038
5171
  * Creates a new WarehouseConfig instance using the specified properties.
@@ -13934,7 +14067,7 @@ declare function jitCompiler(rpcCallback: RpcCallback): IJitCompiler;
13934
14067
 
13935
14068
  declare function main(coreExecutionRequest: Uint8Array | string): Uint8Array | string;
13936
14069
 
13937
- declare const version = "1.4.0";
14070
+ declare const version = "1.5.0";
13938
14071
 
13939
14072
  declare const session: Session;
13940
14073
  declare const supportedFeatures: sqlanvil.SupportedFeatures[];