how to create a sqlite file when the application starts (didFinishLaunchingWithOptions) the test if it already or not exsist otherwise create the file sqlite
how to create a sqlite file when the application starts (didFinishLaunchingWithOptions) the test if
Share
Like this… the sqlPath variable is the path to the pre-made sql database on your ressource
EDIT 1:
You can create the database on your mac using this command line :
in the DATABASE_CREATION.txt something like this :
Then put directly the database.sql file into your project resource. (like an image)