Is there a way to access sqlc parse output within a sqlc plugin?
#4433
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
basically I need extract a query's table dependencies to reload it on data update via sqlite's update hook. Before
sqlc parsei was using a hacky regex but now I can atleast be more accurate by extracting from parse output but I have to do it in seperate script right now ideally sqlc will expose this info directly when doing codegen like I could have agetAccount.tables = ["account_tags", "accounts", "transactions"] as const;so I can access the query's tables in the generated file if we have some option likeemit_query_tables.Beta Was this translation helpful? Give feedback.
All reactions