I\'m working with SQLite.swift. In the document, the path to the database is:
let path = NSSearchPathForDirectoriesInDomains(
.DocumentDirect
The main difference is that storing the file in the documents folder means you can write (update) it, which is pretty important for a database file. You cannot write to a file in the app bundle.
The usual pattern for using a database in an app is: