simolus3 / drift

Drift is an easy to use, reactive, typesafe persistence library for Dart & Flutter.
https://drift.simonbinder.eu/
MIT License
2.47k stars 354 forks source link

[Question] Add data to db manually #762

Closed mikededo closed 3 years ago

mikededo commented 3 years ago

Hello, my friend and I are developing a workout tracker for personal purposes and I was worndering if there's a way to enter data manually that persists in the app. Let me explain myself:
We would like to already have some, for instance, exercices and pre-defined workouts, so, when the user downloads the app for the first time, it does not face an empty application.

So, is there a way to reproduce what has been explained with the package?

Much appreciated!

Edit: The right term would be a way of pre-populate the database.

mikededo commented 3 years ago

I've found the Post-migration post in the documentation that explains how to. Thanks anyway!