Replies: 1 comment
-
|
You can create a baker template that runs seaorm-cli to generate structs from database or expect entities or some other object in the answers, creates migrations and finally in posthook it run seaorm-cli to run migrations from struct i implemented something similar in https://github.com/dinosath/springrs-template. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
i want database tables (postgresql, sqlite, whatever) to be automatically "scaffolded" into rust structs.
Would baker or a sophisticated baker template be a good starting point ?
Later on, a REPL, Ratatui, Web Admin interface (via rocket?) and Desktop App could be scaffolded on-top. In my imagination this could be solved with really sophisticated baker templates.
Or am i thinking in the wrong direction ? What are your opinions ? Thanks !
Beta Was this translation helpful? Give feedback.
All reactions