Replies: 2 comments
-
Of course I'd like to do that without forking SQLx 😉 |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can have a look at this PR #2924 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Postgres has this nice mechanism called logical decoding. It allows you to retrieve any changes that were made in the database.
I'm using built-in (to Postgres) plugin pgoutput to read the binary messages which itself are described in Logical Replication Message Formats.
When a change in database occurs you get a datastructure called
TupleData
. It is very similar to what we have inPgRow
insqlx
.My question is: Can I somehow feed the
TupleData
toPgRow
such that I can use the parsing mechanism insqlx
?Beta Was this translation helpful? Give feedback.
All reactions