Open kyleconroy opened 2 years ago
hey! 👋
Thanks, I'm trying avoid parsing the Postgres queries too much. Most of the introspection queries are SET
/SHOW
which I ignore (😄) or they can be handled with the faked pg_catalog
system in Postlite.
I do need to parse the CREATE TABLE
queries in SQLite's sqlite_master
table so I can provide introspection into the schema. I haven't dug into that too deep yet though.
👋
Really cool project! I'm not sure if you need to parse any of the incoming queries, but you can use the official PostgreSQL parser easily from Go: https://github.com/pganalyze/pg_query_go
I use this project to power PostgreSQL support in https://github.com/kyleconroy/sqlc