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

[GEN] sea-orm uses migration based approach #22

Open
JonasCir opened this issue Oct 7, 2022 · 0 comments
Open

[GEN] sea-orm uses migration based approach #22

JonasCir opened this issue Oct 7, 2022 · 0 comments

Comments

@JonasCir
Copy link
Collaborator

JonasCir commented Oct 7, 2022

General

seo-orm in general uses a migration based approach, which means that migrations provided by the developer are used to generate the entity code.

Since we are completely based on sea-orm we should follow this approach.

Proposed change

Introduce the following new gen commands:

  1. gen migration: Use sea-orm-cli migrate generate my_new_table -u programmatically
  2. gen model: Use sea-orm-cli migrate fresh programatically (we probably want a dedicated DB for generation and one DB for the user to tests its app)
  3. gen graphql: Use templating of GraphQL, later switch to Seaography
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

1 participant