You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm very new to Rust in general, but I was wondering how to best handle seeding data.
For example, Laravel distinguishes between migrations as structural table changes (like creating, altering, and deleting) and seeders as data to fill those tables.
Is it best to just use sqlx-cli migrations for both structure and data? Or do most people write separate seeder scripts?
For context, I'm just trying to build a simple CRUD app using Rocket and SQLx.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm very new to Rust in general, but I was wondering how to best handle seeding data.
For example, Laravel distinguishes between migrations as structural table changes (like creating, altering, and deleting) and seeders as data to fill those tables.
Is it best to just use sqlx-cli migrations for both structure and data? Or do most people write separate seeder scripts?
For context, I'm just trying to build a simple CRUD app using Rocket and SQLx.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions