taozhi8833998 / node-sql-parser

Parse simple SQL statements into an abstract syntax tree (AST) with the visited tableList and convert it back to SQL
https://taozhi8833998.github.io/node-sql-parser/
Apache License 2.0
780 stars 174 forks source link

feature: add option into astify etc methods to avoid detect databasename or table name #2007

Open michael-hll opened 1 month ago

michael-hll commented 1 month ago

I have a case is using node-sql-parser astify method to parse a sql where condition but I found when the where condition looks like below: select * from dummy_table where contacts.email.address === 'xxx@test.com', then the contacts will be reconized as thte database and email as the table name this is a handy process but not work for my case I want to keep the column name as 'contacts.email.address' Hope you can add this feature.