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

Explicitly handle statement opening and closing #19

Open
timsehn opened this issue Jan 28, 2022 · 0 comments
Open

Explicitly handle statement opening and closing #19

timsehn opened this issue Jan 28, 2022 · 0 comments

Comments

@timsehn
Copy link
Contributor

timsehn commented Jan 28, 2022

The approach currently in this script is to process dumps line by line switching between cases when a new SQL statement is matched. For instance, we handle a CREATE TABLE statement until we see an INSERT statement. We make no attempt to determine the end of statements.

The issue here is things like functions have BEGIN/END blocks where INSERTS or CREATES can be defined.

We need to make an attempt to determine the end of statements so we get a better state machine.

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

1 participant