pglast
pglast copied to clipboard
Support statement types similar to referenced relations
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.