NativeSQLiteDriver


A SQLiteDriver that uses a version of SQLite included with the host operating system.

Usage of this driver expects that libsqlite can be found in the shared library path.

The host's SQLite used by this driver might be compiled with different threading modes which can be checked with threadingMode. Regardless of the mode compiled, this driver does not have an internal connection pool and whether the driver connections are thread-safe or not will be determined by the compiled threading mode of the host library.

Summary

Public constructors

N

Public functions

open SQLiteConnection
open(fileName: String)

Opens a new database connection.

N
SQLiteConnection
open(fileName: String, flags: Int)

Opens a new database connection.

N

Inherited properties

From androidx.sqlite.SQLiteDriver
open Boolean

Identifies whether the driver has an internal connection pool or not.

N

Public constructors

NativeSQLiteDriver

NativeSQLiteDriver()

Public functions

open

open fun open(fileName: String): SQLiteConnection

Opens a new database connection.

To open an in-memory database use the special name :memory: as the fileName.

Parameters
fileName: String

Name of the database file.

Returns
SQLiteConnection

the database connection.

open

fun open(fileName: String, flags: Int): SQLiteConnection

Opens a new database connection.

See also Opening A New Database Connection

Parameters
fileName: String

Name of the database file.

flags: Int

Connection open flags.

Returns
SQLiteConnection

the database connection.