Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create SQL Parser #1

Open
8 tasks
matthias-Q opened this issue Jan 15, 2023 · 2 comments
Open
8 tasks

Create SQL Parser #1

matthias-Q opened this issue Jan 15, 2023 · 2 comments

Comments

@matthias-Q
Copy link
Owner

We need to be able to parse SQL statements.

Chumsky seems to be a good library, as it allows for very good error handling.

Not sure how to structure the process at the moment so I will just go ahead and create a list of
statement that need to be parse-able:

  • SELECT statements
  • CREATE statements
  • UPDATE statements
  • DELETE statements
  • DROP (table, index)
  • Function calls
  • Comments
  • ALTER (table, index)
@atcol
Copy link

atcol commented Jan 16, 2023

Hello I saw your post on reddit and thought I'd see if I can help.

Have you thought about using https://github.com/sqlparser-rs/sqlparser-rs?

@matthias-Q
Copy link
Owner Author

Yes, we did take a brief look into it. I would like to use it, in order to re-implement a parser, but it looks like it is not "error resilient"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants