I am developing an app which requires a SQL DB on the device. I am using the File.applicationStorageDirectory and folder.resolvePath to add a new DB. When debugging the app it all looks like it executes correctly and I am able to successfully create a new table.
I haven’t gone too far with inserting and reading records however I just wanted to ask, when I re-run the app does the existing DB file get replaced with a new empty one? If so do I need to check if the file exists etc.
How can I look at the DB on the device (iOS at this stage)?
Thanks
Try with this
If you using resolvePath if file doesn’t exist it created for you else it leave as it is.Overwrite never happen if you using resolvepath.
OR
If you want to check if already exists through
Use this
I don’t know how to look db file on device storage place(iOS).