-
Notifications
You must be signed in to change notification settings - Fork 22
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
oldKeys field is not supported, right? #31
Comments
Hi, @scythargon :) |
@scythargon |
Hey! Thanks!:) I didn't get what you mean by the type issue, could you elaborate please? |
pg-logical-replication/src/output-plugins/wal2json/wal2json-plugin-output.type.ts Lines 26 to 28 in 15930f2
In TypeScript, there is a feature called union type. You can define a type such that the oldKeys value exists only when the kind of Change is either 'update' or 'delete', based on the value of kind. https://www.typescriptlang.org/docs/handbook/unions-and-intersections.html#discriminating-unions |
Hi! First of all - thank you for you library! It's great!
But currently when used with wal2json - it does not allow to determine which row was deleted or updated, right?
Because
oldKeys
is not present in the lib source, I believe.Here it is in wal2json readme:
Do you have plans to add it? Or will you be fine if I submit a MR?
Thank you again.
The text was updated successfully, but these errors were encountered: