pglast icon indicating copy to clipboard operation
pglast copied to clipboard

Support statement types similar to referenced relations

Open raghu2 opened this issue 2 years ago • 3 comments

Hi @lelit ,

Not sure if this was already implemented, but it would be great if something like statement type can also be implemented like

query = 'insert into table_1 select * from table_2'

should give something like [('InsertStmt', 'table_1'), ('SelectStmt', 'table_2')]

If this was already implemented please guide me to the link or the code-snippet.

Thanks in advance, Raghu.

raghu2 avatar Feb 20 '23 13:02 raghu2