Answer the question
In order to leave comments, you need to log in
Is there any way to pre-populate the data into the SQLite database?
In the process of using the application, the user can create new tables in the database and change some values there. Such a question: as an example, I want to make one table in advance with some data so that the user understands what it is. Is there any way to check this? So that the database already initially had a table and data in it.
Answer the question
In order to leave comments, you need to log in
Of course you can.
You can create some sql file and write your queries there. And when you start the application, import them.
Here are similar questions:
https://stackoverflow.com/questions/47466913/sqlit...
https://stackoverflow.com/questions/22890693/import...
Well, you can create a file with the base yourself in advance and distribute it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question