SQLiteDriver
-
Cmn
interface SQLiteDriver
AndroidSQLiteDriver |
A |
BundledSQLiteDriver |
A |
NativeSQLiteDriver |
A |
SupportSQLiteDriver |
A |
An interface to open database connections.
Summary
Public functions |
||
|---|---|---|
SQLiteConnection |
Opens a new database connection. |
Cmn
|
Public properties |
||
|---|---|---|
open Boolean |
Identifies whether the driver has an internal connection pool or not. |
Cmn
|
Public functions
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. |
Public properties
hasConnectionPool
open val hasConnectionPool: Boolean
Identifies whether the driver has an internal connection pool or not.
A driver with an internal pool should be capable of opening connections that are safe to be used in a multi-thread and concurrent environment whereas a driver that does not have an internal pool will require the application to manage connections in a thread-safe manner. A driver might not report containing a connection pool but might still be safe to be used in a multi-thread environment, such behavior will depend on the driver implementation.
The value returned should be used as a signal to higher abstractions in order to determine if the driver and its connections should be managed by an external connection pool or not.