Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added logic to support multiple databases #535

Merged
merged 28 commits into from
Apr 22, 2024

Conversation

subkanthi
Copy link
Collaborator

@subkanthi subkanthi commented Apr 9, 2024

Added logic to support multiple databases.
Summary of changes.

  • CDC Payload: A new DB connection per database has to be created for PreparedStatement/executeBatch, since JDBC prefixes the table name with database name specified in the connection. A system database will not work.
  • DDL payload:A system database connection will be used, but the table_name in DDL will be prefixed with database name.

databasename.tablename: MySQL DDL could have 2 variations one where just the table name is passed and one where the database name is included with the table name.

Fix for parser when MySQL query DDL could contain database_name.table_name
Integration tests:

@subkanthi subkanthi linked an issue Apr 9, 2024 that may be closed by this pull request
@subkanthi subkanthi changed the title Added logic to retrieve database name from Debezium source record and… Added logic to support multiple databases Apr 13, 2024
@subkanthi subkanthi closed this Apr 17, 2024
@subkanthi subkanthi reopened this Apr 17, 2024
@subkanthi subkanthi closed this Apr 19, 2024
@subkanthi subkanthi reopened this Apr 19, 2024
@subkanthi subkanthi merged commit d5e87e8 into 2.1.0 Apr 22, 2024
1 check passed
@subkanthi subkanthi deleted the 531-added-support-for-multiple-databases-mysql branch April 22, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant