Skip to content

Parse SQL to get the input and output table lists #279

Closed Answered by tobymao
tuttle asked this question in Q&A
Discussion options

You must be logged in to vote

to find tables, you can do

parse_one(...).find_all(exp.Table)

to figure out reading vs writing, perhaps you could use

expression.find_ancestor(exp.Insert)

or so to figure out what the root node is

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tobymao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants