-
Notifications
You must be signed in to change notification settings - Fork 20
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
Feature: Seeding #68
Comments
Interesting. This is not a feature I am particularly a fan of. But this is a feature most developers would expect. I suppose we can think how to integrate this feature into surrealdb-migrations. I can think of two ways to run seeds:
Additional features on this would be:
|
I think both ways should be possible, with automatic seeding if the start point is 0, and these seeds should also be split based on the database branch, for instance you may have test accounts in "dev" or "staging" but not on production. Having a |
Even if SurrealDB offers a large set of features, running a script (via bash for example) can be useful in some use cases. Like importing data from a text file or a CSV file. Or creating custom batch operations. This is especially true for seeding. |
Is your feature request related to a problem? Please describe.
Seeding is a common feature provided by ORMs and migration tools like Eloquent and Prisma
Describe the solution you'd like
A seed file that is executed when the database is first setup.
Describe alternatives you've considered
Manually running SURQL on setup, but this can be tedious for large operations.
The text was updated successfully, but these errors were encountered: