sqltoast icon indicating copy to clipboard operation
sqltoast copied to clipboard

A SQL parser written in C++

Results 17 sqltoast issues
Sort by recently updated
recently updated
newest added

I followed the instructions of your README.md to the letter, and get the following error: ![image](https://github.com/jaypipes/sqltoast/assets/294943/d2b737f0-be25-4bf2-a6c7-50f4a7e6420e) I'm on Ubuntu 20.04 and using CMake 3.27.7.

libunwind would be very useful to integrate into the `sqltoast::parse_context_t` struct, allowing the context to output debugging information including how many depths of recursion of a particular parsing function we're...

enhancement

``` [jaypipes@uberbox _build]$ ./sqltoaster/sqltoaster --yaml "SELECT (SELECT d FROM t2 WHERE d.id = t2.id) AS d_id FROM t2" Syntax error. Expected to find one of ('*'|>) but found keyword[AS] SELECT...

bug

There's a big TODO left in `parse_row_value_constructor()`: ```c++ if (cur_sym == SYMBOL_SELECT) { // TODO(jaypipes): handle subquery row value constructors return false; } ```

DML

The has the following EBNF grammar: ``` ::= CAST AS ::= | NULL ::= | ```

The NULL constraint specifier is default for the `CREATE TABLE` statement, however we don't support it. We only support the standard `NOT NULL` constraint specifier: ``` jaypipes@uberbox:~/src/github.com/jaypipes/sqltoast/_build$ ./sqltoaster "create table...

bug
DDL

There is now a `sqltoast::parse_options_t` switch that disables the construction of the `sqltoast::statement` objects if the caller doesn't want or need these objects. One reason the caller may not want...

enhancement

Now that YAML output is shaping up nicely, I'd like to add support for DOT/graphviz output to sqltoaster. This would allow a machine-readable visual format.

enhancement

Due the various things, including how the lexer's cursor is moved over time, sometimes the syntax errors produced when a parsing problem happens can be confusing. Por ejemplo: ``` ./sqltoaster/sqltoaster...

enhancement