Skip to content
This repository was archived by the owner on Oct 16, 2023. It is now read-only.

Commit 9f66ca4

Browse files
feat(v2): Add MySQL dialect (#116)
* feat: Add MySQL dialect to bigquerymigration v2 client library PiperOrigin-RevId: 466417698 Source-Link: googleapis/googleapis@2bafaf1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/15db99606c2f37840475be9dfa5faa32d0844dbf Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTVkYjk5NjA2YzJmMzc4NDA0NzViZTlkZmE1ZmFhMzJkMDg0NGRiZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent d05fa32 commit 9f66ca4

File tree

6 files changed

+23
-1
lines changed

6 files changed

+23
-1
lines changed

bigquery-migration-v2alpha-py.tar.gz

Whitespace-only changes.

google/cloud/bigquery_migration/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
BigQueryDialect,
5353
Dialect,
5454
HiveQLDialect,
55+
MySQLDialect,
5556
NameMappingKey,
5657
NameMappingValue,
5758
NetezzaDialect,
@@ -96,6 +97,7 @@
9697
"BigQueryDialect",
9798
"Dialect",
9899
"HiveQLDialect",
100+
"MySQLDialect",
99101
"NameMappingKey",
100102
"NameMappingValue",
101103
"NetezzaDialect",

google/cloud/bigquery_migration_v2/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
BigQueryDialect,
4242
Dialect,
4343
HiveQLDialect,
44+
MySQLDialect,
4445
NameMappingKey,
4546
NameMappingValue,
4647
NetezzaDialect,
@@ -79,6 +80,7 @@
7980
"MigrationSubtask",
8081
"MigrationTask",
8182
"MigrationWorkflow",
83+
"MySQLDialect",
8284
"NameMappingKey",
8385
"NameMappingValue",
8486
"NetezzaDialect",

google/cloud/bigquery_migration_v2/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
BigQueryDialect,
3333
Dialect,
3434
HiveQLDialect,
35+
MySQLDialect,
3536
NameMappingKey,
3637
NameMappingValue,
3738
NetezzaDialect,
@@ -74,6 +75,7 @@
7475
"BigQueryDialect",
7576
"Dialect",
7677
"HiveQLDialect",
78+
"MySQLDialect",
7779
"NameMappingKey",
7880
"NameMappingValue",
7981
"NetezzaDialect",

google/cloud/bigquery_migration_v2/types/migration_entities.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ class MigrationTask(proto.Message):
122122
Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
123123
Translation_Snowflake2BQ, Translation_Netezza2BQ,
124124
Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
125-
Translation_SQLServer2BQ, Translation_Presto2BQ.
125+
Translation_SQLServer2BQ, Translation_Presto2BQ,
126+
Translation_MySQL2BQ.
126127
state (google.cloud.bigquery_migration_v2.types.MigrationTask.State):
127128
Output only. The current state of the task.
128129
processing_error (google.rpc.error_details_pb2.ErrorInfo):

google/cloud/bigquery_migration_v2/types/translation_config.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"SQLServerDialect",
3434
"PostgresqlDialect",
3535
"PrestoDialect",
36+
"MySQLDialect",
3637
"ObjectNameMappingList",
3738
"ObjectNameMapping",
3839
"NameMappingKey",
@@ -170,6 +171,10 @@ class Dialect(proto.Message):
170171
presto_dialect (google.cloud.bigquery_migration_v2.types.PrestoDialect):
171172
The Presto dialect
172173
174+
This field is a member of `oneof`_ ``dialect_value``.
175+
mysql_dialect (google.cloud.bigquery_migration_v2.types.MySQLDialect):
176+
The MySQL dialect
177+
173178
This field is a member of `oneof`_ ``dialect_value``.
174179
"""
175180

@@ -251,6 +256,12 @@ class Dialect(proto.Message):
251256
oneof="dialect_value",
252257
message="PrestoDialect",
253258
)
259+
mysql_dialect = proto.Field(
260+
proto.MESSAGE,
261+
number=14,
262+
oneof="dialect_value",
263+
message="MySQLDialect",
264+
)
254265

255266

256267
class BigQueryDialect(proto.Message):
@@ -323,6 +334,10 @@ class PrestoDialect(proto.Message):
323334
r"""The dialect definition for Presto."""
324335

325336

337+
class MySQLDialect(proto.Message):
338+
r"""The dialect definition for MySQL."""
339+
340+
326341
class ObjectNameMappingList(proto.Message):
327342
r"""Represents a map of name mappings using a list of key:value
328343
proto messages of existing name to desired output name.

0 commit comments

Comments
 (0)