usql
usql copied to clipboard
µSQL is a SQL parser engine for C++ to develop SQL based applications easily, and it supports other SQL like domain specific languages such as UnQL and GQL too.
~/tmp/uSQL4CC/examples/sqlparse $ unix/sqlparse usql> SELECT 1 FROM a.b WHERE 1 = 1 AND 1 terminate called after throwing an instance of 'std::out_of_range' what(): vector::_M_range_check Aborted
``` // Antlr lexer is vomiting verbosity when the query is unparsable. // It's not easily suppressable. // The lexer doesn't use 'cout'. Overriding puts temporarily doesn't seem possible. //...
~/tmp/uSQL4CC/examples/sqlparse $ unix/sqlparse usql> SELECT id FROM a.b ORDER BY id Segmentation fault