Bundle migrations #257
-
Hello! Is there a way to bundle the migrations file and to apply them when first connecting to the database ? In the same fashion that |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
sea-orm/examples/rocket_example/src/main.rs Lines 166 to 176 in 349108d I think the way integration should work will depend on the framework you use. |
Beta Was this translation helpful? Give feedback.
-
I think it makes sense! However, it'd may be interesting to allow accessing the inner value of |
Beta Was this translation helpful? Give feedback.
-
I think currently you can do it the other way around. You setup a sqlx connection yourself, run the necessary migrations you want, and then convert it into a SeaORM connection using |
Beta Was this translation helpful? Give feedback.
I think currently you can do it the other way around. You setup a sqlx connection yourself, run the necessary migrations you want, and then convert it into a SeaORM connection using
from_sqlx_*_pool