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

MySQL support (procedural language) #60

Open
14 of 16 tasks
Tracked by #7
nene opened this issue Jan 15, 2024 · 2 comments
Open
14 of 16 tasks
Tracked by #7

MySQL support (procedural language) #60

nene opened this issue Jan 15, 2024 · 2 comments

Comments

@nene
Copy link
Owner

nene commented Jan 15, 2024

Procedural language

  • DECLARE
  • SET
    • basic syntax
    • multi-variable assignment
    • GLOBAL, PERSIST, PERSIST_ONLY, SESSION
  • BEGIN .. END block
  • procedural CASE
  • IF .. THEN .. ELSEIF .. ELSE .. END IF
  • block labels
  • LOOP .. END LOOP
  • REPEAT .. UNTIL .. END REPEAT
  • WHILE cond DO .. END WHILE
  • LEAVE
  • ITERATE
  • RETURN
  • CALL
@nene nene mentioned this issue Jan 15, 2024
9 tasks
@TonyGravagno
Copy link

I hope this is the right place to add the DELIMITER command.
It's old and standard: https://dev.mysql.com/doc/refman/5.7/en/stored-programs-defining.html

It's not supported in the parser.

I'd be happy to add it if I spoke PegJS, sorry.

@nene
Copy link
Owner Author

nene commented Oct 25, 2024

Better to create a separate issue for this as this DELIMITER is really quite a different beast. It's not really part of the language recognized by MySQL server, it's a command specific to the mysql client program (among several other commands, like use).

Created a separate issue here: #89

Frankly I'm not quite sure how to go about implementing this. There possibly needs to be some switch to toggle the parser into mysql client-mode.

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