taozhi8833998 / taozhi8833998/node-sql-parser
Methods for modifying an AST object
Open
@taozhi8833998 is already working on this.
Since Nov 9, 2020.
- Dominant language
- PEG.js
- Stars
- 1k
- Forks
- 244
- PR merge metrics
- No merged PRs in 30d
Description
Hi.
Methods for modifying an type="select" node of an AST object would be awesome.
For example:
let sqlObj = sqlParser.astify(my_huge_sql);
if (something){
sqlParser.addJoin(sqlObj, join_params);
sqlParser.addWhere(sqlObj, where_params);
}
let final_sql = sqlParser.sqlify(sqlObj, {database: 'TransactSQL'})
Thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.