-
-
Notifications
You must be signed in to change notification settings - Fork 527
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
Transforming an Entity into TableCreateStatement #59
Milestone
Comments
Wow! neat new feature!! |
Not a high priority though. Definitely nice to have.
|
First priority is sea-schema lolll Postgres support! |
tyt2y3
changed the title
Transforming an Entity into SchemaStatement
Transforming an Entity into TableCreateStatement
Aug 14, 2021
@scrblue Would you be interested in this task? |
Merged
Several action items:
|
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sea-orm/tests/common/setup/schema.rs
Lines 29 to 51 in 08acc2a
To avoid duplication of information, we can actually generate a SeaQuery SchemaStatement entirely from the Entity definition.
It would be useful in 2 scenarios:
writing test cases i.e. original model is MySQL but we want to test in SQLite. this is particularly helpful if the migration files are written in raw SQL. we effectively automatically translated from MySQL to SQLite!
writing SQLite applications. in this case, apps don't need a separate migration tool. everything should be done by the app itself. so it's actually helpful to automatically bootstrap a SQLite database from an Entity file
The text was updated successfully, but these errors were encountered: