vitess-sqlparser
vitess-sqlparser copied to clipboard
Would like to replace all table names. Any examples?
e.g. select * from t123_terms inner join t123_abc ... inner join t123_xyz;
how do i replace t123... with abc.t123_...?
please help. thx
https://github.com/huangzhiran/sqltableconv
I create a little program for rename sql table name. hope useful for you.
@huangzhiran , you use a different package, which does parsing from scratch again and uses some things (like cursor) I don't see in a current package. Can you please create an example, which uses github.com/blastrain/vitess-sqlparser only?