mysql-ast-parser
v0.0.1
Published
Mysql Query Parser for JavaScript created using antlr4
Downloads
4
Readme
Mysql Parser
example
import { ANTLRInputStream, CommonTokenStream } from 'antlr4ts';
import { MySqlLexer, MySqlParser, QuerySpecificationContext } from 'mysql-parser';
const qs = 'select a and b or c'
const { ast, syntaxErrors } = parse(qs)
console.log(ast, syntaxErrors)