No initial Database file needed
Closed this issue · 3 comments
confile commented
You wrote in the Readme:
In either way, both Android and iOS projects should contain your initial SQLite database file.
This is not true. I tested it. You can pretty well work without an initial database file and create the initial database in code.
vals-productions commented
Have you verified it in both - Android and iOS?
confile commented
Yes I tested on IOS and on Android, both.
I just removed db.copyDbOnce();
and deleted the database file.
Before the first query I created the table with:
create table if not exists user (name TEXT,email TEXT,id INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE,data BLOB,height REAL)
You should mention this in the Readme somewhere.
vals-productions commented
I have updated the doc: https://github.com/vals-productions/sqlighter/blob/master/README.md#database-file , feel free to update if something is not clear