Skip to content

Commit 584f186

Browse files
committed
update readme
1 parent f0b902c commit 584f186

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,12 @@ Import the JS file in your page:
6666
<script src="https://unpkg.com/node-sql-parser@latest/parser.min.js"></script>
6767
<script>
6868
window.onload = function () {
69-
// Example parser
70-
const parser = new NodeSQLParser.Parser()
71-
const ast = parser.astify("select id, name from students where age < 18")
72-
console.log(ast)
69+
// Example parser
70+
const parser = new NodeSQLParser.Parser()
71+
const ast = parser.astify("select id, name from students where age < 18")
72+
console.log(ast)
73+
const sql = parser.sqlify(ast)
74+
console.log(sql)
7375
}
7476
</script>
7577
</body>

0 commit comments

Comments
 (0)