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

Remove schema name in MySQL CDC #118

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions integrations/sources/mysql-cdc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,9 @@ Below are the metadata columns available for MySQL CDC.
| Field | Notes |
| :------------- | :-------------------- |
| database\_name | Name of the database. |
| schema\_name | Name of the schema. |
| table\_name | Name of the table. |

For instance, the person table below contains columns for typical personal information. It also includes metadata fields (`database_name`, `schema_name`, `table_name`) to provide contextual information about where the data resides within the MySQL database.
For instance, the person table below contains columns for typical personal information. It also includes metadata fields (`database_name`, `table_name`) to provide contextual information about where the data resides within the MySQL database.

```sql
CREATE TABLE person (
Expand All @@ -217,7 +216,6 @@ CREATE TABLE person (
PRIMARY KEY (id)
) INCLUDE TIMESTAMP AS commit_ts
INCLUDE DATABASE_NAME as database_name
INCLUDE SCHEMA_NAME as schema_name
INCLUDE TABLE_NAME as table_name
FROM mysql_source TABLE 'public.person';
```
Expand Down
Loading