-
Notifications
You must be signed in to change notification settings - Fork 547
feat(postgresql)!: Update to SDK V4 #11719
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
feat(postgresql)!: Update to SDK V4 #11719
Conversation
| pgType pgType | ||
| Tables schema.Tables | ||
| tables schema.Tables | ||
| cdcId string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since plugins don't have access to the top level spec we can't use the source name as the replication name like before. I added a plugin level configuration for now, but we should figure this out before merging this PR as this is a breaking change
| Unit: arrow.Millisecond, | ||
| } | ||
| err = timeMillisecond.Set("04:05:06.789") | ||
| err = inet.Set("192.168.0.0/24") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can change this back to 192.168.0.1/24 after cloudquery/plugin-sdk#982 is released
|
Marked this as blocked due to the breaking changes in the spec (adding a |
b4b53b3 to
b38df93
Compare
Related to #11766. We'll need to chose the right naming for this plugin level configuration and document it |
2c92cf5 to
5068de7
Compare
5068de7 to
af0287a
Compare
|
|
||
| func (*Spec) Validate() error { | ||
| return nil | ||
| CDCId string `json:"cdc_id,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated the docs to reflect this
Closes #11758
Summary
Similar to #11696.
I had to comment change some of the tests due to cloudquery/plugin-sdk#982 and cloudquery/plugin-sdk#915 (comment), so not ready to mergeBEGIN_COMMIT_OVERRIDE
feat!: Upgrades the postgresql source plugin to use plugin-sdk v4. This version does not contain any user-facing breaking changes, but because it is now using CloudQuery gRPC protocol v3, it does require use of a destination plugin that also supports protocol v3. All recent destination plugin versions support this.
feat!: To enable CDC in this version you'll need to use the
cdc_idconfiguration string property, instead of thecdcboolean one. Please refer to the docs for more informationEND_COMMIT_OVERRIDE