Skip to content

Improve Statement Splitter #135

Open
@psteinroe

Description

@psteinroe

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions