class OpenParams
Wrapper for configuration parameters that are used for opening SQLiteDatabase
Summary
| Nested classes | |
|---|---|
|
Builder for |
|
| Public methods | |
|---|---|
| SQLiteDatabase.CursorFactory? |
Returns an optional factory class that is called to instantiate a cursor when query is called |
| DatabaseErrorHandler? |
Returns handler for database corruption errors |
| Long |
Returns maximum number of milliseconds that SQLite connection is allowed to be idle before it is closed and removed from the pool. |
| String? |
Returns journal mode. |
| Int |
Returns total number of lookaside memory slots per database connection or -1 if not set. |
| Int |
Returns size in bytes of each lookaside slot or -1 if not set. |
| Int |
Returns flags to control database access mode. |
| String? |
Returns synchronous mode. |
Public methods
getIdleConnectionTimeout
fun getIdleConnectionTimeout(): Long
Returns maximum number of milliseconds that SQLite connection is allowed to be idle before it is closed and removed from the pool.
If the value isn't set, the timeout defaults to the system wide timeout
| Return | |
|---|---|
Long |
timeout in milliseconds or -1 if the value wasn't set. |