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

Commit

Permalink
feat: Add SQL Server dialect to bigquerymigration v2 client library (#99
Browse files Browse the repository at this point in the history
)

* feat: Add SQL Server dialect to bigquerymigration v2 client library

PiperOrigin-RevId: 453984088

Source-Link: googleapis/googleapis@f30516e

Source-Link: https://github.com/googleapis/googleapis-gen/commit/19b908a783056837e9d4b43b89ebf214485d3f52
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTliOTA4YTc4MzA1NjgzN2U5ZDRiNDNiODllYmYyMTQ0ODVkM2Y1MiJ9

* 🦉 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>
Co-authored-by: Steffany Brown <30247553+steffnay@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 15, 2022
1 parent f501970 commit 35a1099
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 1 deletion.
2 changes: 2 additions & 0 deletions google/cloud/bigquery_migration/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
SnowflakeDialect,
SourceEnv,
SparkSQLDialect,
SQLServerDialect,
TeradataDialect,
TranslationConfigDetails,
VerticaDialect,
Expand Down Expand Up @@ -103,6 +104,7 @@
"SnowflakeDialect",
"SourceEnv",
"SparkSQLDialect",
"SQLServerDialect",
"TeradataDialect",
"TranslationConfigDetails",
"VerticaDialect",
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/bigquery_migration_v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
SnowflakeDialect,
SourceEnv,
SparkSQLDialect,
SQLServerDialect,
TeradataDialect,
TranslationConfigDetails,
VerticaDialect,
Expand Down Expand Up @@ -85,6 +86,7 @@
"Point",
"RedshiftDialect",
"ResourceErrorDetail",
"SQLServerDialect",
"SnowflakeDialect",
"SourceEnv",
"SparkSQLDialect",
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/bigquery_migration_v2/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
SnowflakeDialect,
SourceEnv,
SparkSQLDialect,
SQLServerDialect,
TeradataDialect,
TranslationConfigDetails,
VerticaDialect,
Expand Down Expand Up @@ -81,6 +82,7 @@
"SnowflakeDialect",
"SourceEnv",
"SparkSQLDialect",
"SQLServerDialect",
"TeradataDialect",
"TranslationConfigDetails",
"VerticaDialect",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ class MigrationTask(proto.Message):
types: Translation_Teradata2BQ, Translation_Redshift2BQ,
Translation_Bteq2BQ, Translation_Oracle2BQ,
Translation_HiveQL2BQ, Translation_SparkSQL2BQ,
Translation_Snowflake2BQ, Translation_Netezza2BQ.
Translation_Snowflake2BQ, Translation_Netezza2BQ,
Translation_AzureSynapse2BQ, Translation_Vertica2BQ,
Translation_SQLServer2BQ.
state (google.cloud.bigquery_migration_v2.types.MigrationTask.State):
Output only. The current state of the task.
processing_error (google.rpc.error_details_pb2.ErrorInfo):
Expand Down
15 changes: 15 additions & 0 deletions google/cloud/bigquery_migration_v2/types/translation_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"NetezzaDialect",
"AzureSynapseDialect",
"VerticaDialect",
"SQLServerDialect",
"ObjectNameMappingList",
"ObjectNameMapping",
"NameMappingKey",
Expand Down Expand Up @@ -155,6 +156,10 @@ class Dialect(proto.Message):
vertica_dialect (google.cloud.bigquery_migration_v2.types.VerticaDialect):
The Vertica dialect
This field is a member of `oneof`_ ``dialect_value``.
sql_server_dialect (google.cloud.bigquery_migration_v2.types.SQLServerDialect):
The SQL Server dialect
This field is a member of `oneof`_ ``dialect_value``.
"""

Expand Down Expand Up @@ -218,6 +223,12 @@ class Dialect(proto.Message):
oneof="dialect_value",
message="VerticaDialect",
)
sql_server_dialect = proto.Field(
proto.MESSAGE,
number=11,
oneof="dialect_value",
message="SQLServerDialect",
)


class BigQueryDialect(proto.Message):
Expand Down Expand Up @@ -278,6 +289,10 @@ class VerticaDialect(proto.Message):
r"""The dialect definition for Vertica."""


class SQLServerDialect(proto.Message):
r"""The dialect definition for SQL Server."""


class ObjectNameMappingList(proto.Message):
r"""Represents a map of name mappings using a list of key:value
proto messages of existing name to desired output name.
Expand Down

0 comments on commit 35a1099

Please sign in to comment.