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
Copy file name to clipboardexpand all lines: docs/content/docs/4.recipes/2.drizzle.md
+53
Original file line number
Diff line number
Diff line change
@@ -154,6 +154,59 @@ Note that we are also exporting the `User` type, which is inferred from the `use
154
154
We also export the `sql`, `eq`, `and`, and `or` functions from `drizzle-orm` to be used in our queries.
155
155
::
156
156
157
+
### Seed the database (Optional)
158
+
159
+
::collapsible{name="instructions"}
160
+
161
+
Optionally, you can add a server task to populate your database with initial data. This uses [Nitro Tasks](https://nitro.unjs.io/guide/tasks), which is currently an experimental feature.
To run the seed task, start your dev server and open the Nuxt Devtools. Go to _Tasks_ and you will see the `db:seed` task ready to run. This will add the seed data to your database and give you the first users to work with.
0 commit comments