Open
Description
The statement splitter is a crate that receives sql source and returns ranges for every statement in the file. It's supposed to work with incomplete and incorrect statements. Right now, we use a simple Pratt Parser that
- cuts on semicolons
- cuts on double newlines
- tries to be "smart" about DML statements (e.g. select 1 select 1 is split into two)
this is a very pragmatic solution, and we need to figure it if its sufficient.