-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unable to execute multiple lines of MySQL commands #658
Comments
This is duplicated with the issue #582. should we find a resolution for this? @rbugajewski |
I’m not sure. I think we got this issue about 2–3x in the last couple of months, so people definitely have some need for running multiple SQL commands at once. But on the other side I wonder if for all of these issues, just splitting the commands wasn’t perfectly fine. Maybe we should update the docs to more explicitly mention this behavior? |
@kotori2 What was your specific use case? The example you attached to this issue seems to be made up for the sake of simplification. Do you do something in your code that would be easily possible by splitting up multiple commands? |
@rbugajewski My use case is to automatically handle database structure initialization / upgrade, I just execute a 500 lines SQL files to create all tables. |
@kotori2 I see, thanks for the explanation. I think such functionality would greatly fit into a database migration plugin for Drogon, but there will be changes necessary in the framework, too. The plugin would have to model the transitive transitions between database model versions (migration to newer version & rollback to older version). |
Describe the bug
Syntax error when I trying to execute multiple lines of MySQL commands.
To Reproduce
Expected behavior
SQL command executed without error or the framework could provide another multi line SQL interface.
Screenshots
NA
Desktop (please complete the following information):
NA
Smartphone (please complete the following information):
NA
Additional context
Dragon v1.1.0 release
The text was updated successfully, but these errors were encountered: