I need to be able to load a database from the file into the application using sugar orm . What should be used to do this?

UPD: Importing from a sql file, a text file is not important. I want to fill the database on the computer and put it in the application. UPD: I read, figured out with the programs to fill the database. Well, I will create it and how to download it then into the application itself?

  • What kind of file are we talking about? - newman

1 answer 1

SugarORM is in fact a wrapper for Android for SQLite databases.

Those. in essence, the task is to somehow create / fill / edit the database on the computer.

This can be done in many ways.

The easiest is using the sqlite3 command line utility.

You can find a GUI application for working with the database. But this is for those who love to "work with their hands."

Also sqlite is supported in most programming languages. There is also a rich choice on what to write a script or program that would read the source file and fill out the database. Everything depends only on your knowledge.

SQLite project website: https://www.sqlite.org/