-
Hi, My team and I would like to write our migrations is sql. Sea-orm offers that feature, however the migration tool only seems to be able to execute one command at a time. If we perform more than one command in the same sql string we get the following error: I can get around it by using the DO command in postgres: DO $$ BEGIN
-- All the statements you could ever dream of
END $$; I also came across this: SeaQL/sea-query#437 I am just wondering whether there is some better way that sea-orm provides of doing this, and whether multiple commands will be supported without a workaround in the future? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @halldorrt, welcome and thanks for asking!! I think we can provide an interface to execute an unprepared statement(s). I'll try to draft a PR for this later today.
|
Beta Was this translation helpful? Give feedback.
-
You can also call |
Beta Was this translation helpful? Give feedback.
Hey @halldorrt, welcome and thanks for asking!! I think we can provide an interface to execute an unprepared statement(s). I'll try to draft a PR for this later today.