atPath
fun atPath(path: Path, options: SQLiteCreateDatabaseOptions = SQLiteCreateDatabaseOptions.defaults()): SQLiteDatabase
SQLite: Disk-backed
Create a disk-backed SQLite database instance, at the provided path, and with the provided options, assuming sandbox access to I/O; if no permission is granted for I/O, an error is thrown.
Return
The database instance.
Parameters
path
The path to the database file.
options
The database creation options.
fun atPath(path: Path, create: Boolean = SQLiteDatabase.DEFAULT_CREATE, readonly: Boolean = SQLiteDatabase.DEFAULT_READONLY): SQLiteDatabase
SQLite: Disk-backed
Create a disk-backed SQLite database instance, at the provided path, and with the provided options, assuming sandbox access to I/O; if no permission is granted for I/O, an error is thrown.
This method is a convenience wrapper around atPath, with the ability to specify options directly.
Return
The database instance.
Parameters
path
The path to the database file.
create
Whether to create the database if it does not exist.
readonly
Whether the database should be read-only.