sqlite-parser icon indicating copy to clipboard operation
sqlite-parser copied to clipboard

JavaScript implentation of SQLite 3 query parser

Results 19 sqlite-parser issues
Sort by recently updated
recently updated
newest added

Any suggestions on how I can have sqlite-parser to allow for an "/" in the table names just like "."? DB2 has libraries that can contain '/' in the table...

question

I've added a `console.log(location())` inside `bind_parameter` predicate, and for a simple query like below ```sql select foo.*, ? as bar, upper(a) as A ``` `bind_parameter` is evaluated 4 times. I've...

help wanted

In a select statement, reconstituting any expression that isn't aliased must take some recursion to drill down and glue it back together. Up at the statement[i].result[i] level, would it be...

enhancement

This will really help in testing different queries and hence it will be possible to write an extensive and exhaustive test suite with it.

enhancement

Adding in nodes to handle comments is needed to support other tooling that uses the parser to apply transformations to the entire codebase. If we were to apply a refactoring...

enhancement

## Input ``` javascript { "type": "definition", "variant": "constraint", "definition": [ { "type": "constraint", "variant": "foreign key", "references": { "type": "identifier", "variant": "table", "name": "hives" } } ], "columns": [...

enhancement

![image](https://cloud.githubusercontent.com/assets/2535432/19652720/c98bfcfe-9a09-11e6-966b-cafbf56c1472.png) When switching on type you need to use strings because of the whitespace in some of the names. This isn't too important but would be a nice to have....

enhancement

It's probably more an academic problem than a real life issue ... trailing spaces from table or column names do not make it into the AST, e.g. ``` select "a...

bug

I'd be great if after parsing, I could simply reference (for example) results.readFrom and results.writtenTo to know which tables will be touched and how, accurately factoring subqueries into the process.

enhancement