Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions v2/cdc-data-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@
<artifactId>orai18n</artifactId>
<version>${ojdbc8.version}</version>
</dependency>
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>${mssql-jdbc.version}</version>
</dependency>
<dependency>
<groupId>com.google.cloud.teleport</groupId>
<artifactId>it-jdbc</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.google.cloud.teleport.v2.source.mysql.MySqlSourceConnector;
import com.google.cloud.teleport.v2.source.oracle.OracleSourceConnector;
import com.google.cloud.teleport.v2.source.spanner.SpannerSourceConnector;
import com.google.cloud.teleport.v2.source.sqlserver.SqlServerSourceConnector;
import com.google.cloud.teleport.v2.templates.CdcDataGeneratorOptions;
import com.google.cloud.teleport.v2.templates.CdcDataGeneratorOptions.SinkType;
import java.util.Locale;
Expand All @@ -44,6 +45,8 @@ public static ISourceConnector getSourceConnector(SinkType sinkType) {
return new MySqlSourceConnector();
case ORACLE:
return new OracleSourceConnector();
case SQLSERVER:
return new SqlServerSourceConnector();
default:
throw new IllegalArgumentException("Unsupported sink type: " + sinkType);
}
Expand Down Expand Up @@ -72,7 +75,7 @@ public static ISourceConnector getSourceConnector(CdcDataGeneratorOptions option
/**
* Gets the appropriate {@link ISourceConnector} for the given source type string.
*
* @param sourceType the source type name (e.g. "SPANNER", "MYSQL", "ORACLE")
* @param sourceType the source type name (e.g. "SPANNER", "MYSQL", "ORACLE", "SQLSERVER")
* @return the source connector
*/
public static ISourceConnector getSourceConnectorBySourceType(String sourceType) {
Expand All @@ -87,6 +90,8 @@ public static ISourceConnector getSourceConnectorBySourceType(String sourceType)
return new MySqlSourceConnector();
case "ORACLE":
return new OracleSourceConnector();
case "SQLSERVER":
return new SqlServerSourceConnector();
default:
throw new IllegalArgumentException("Unsupported source type: " + sourceType);
}
Expand Down
Loading
Loading