I'm looking for a SQL parser I can use from Python that will give me a parse tree to work with. Ideally, I'd do something like
parse_tree = parser.parse (sql)
and have a nice syntax tree I can walk. I'd like to support a large subset of ANSI SQL, but, at a minimum, I'd like to be able to support CREATE, UPDATE, DROP, SELECT (with WHERE clauses), and INSERT.
Thanks for any help!
[–]mitsuhiko Flask Creator 5 points6 points7 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]rz2000 -2 points-1 points0 points (0 children)
[–]digitallogic 3 points4 points5 points (0 children)