# androidx.sqlite.driver.bundled

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/androidx/sqlite/driver/bundled/package-summary "View this page in Java") Common/AllAndroid/JVMNative/C/iOS

## Classes

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/sqlite/driver/bundled/BundledSQLiteDriver` | A `https://developer.android.com/reference/kotlin/androidx/sqlite/SQLiteDriver` that uses a bundled version of SQLite included as a native component of this library. | Cmn android N |

## Type aliases

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/sqlite/driver/bundled/BundledSQLiteConnection` |   | N |
| `https://developer.android.com/reference/kotlin/androidx/sqlite/driver/bundled/BundledSQLiteDriver` | A `https://developer.android.com/reference/kotlin/androidx/sqlite/SQLiteDriver` that uses a bundled version of SQLite included as a native component of this library. | N |
| `https://developer.android.com/reference/kotlin/androidx/sqlite/driver/bundled/BundledSQLiteStatement` |   | N |
| `https://developer.android.com/reference/kotlin/androidx/sqlite/driver/bundled/OpenFlag` | The flags constant that can be used with `https://developer.android.com/reference/kotlin/androidx/sqlite/driver/bundled/BundledSQLiteDriver#open(kotlin.String)`. | N |

## Constants summary

|---|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_CREATE() = 4` Create the database if it does not already exist. | Cmn |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_EXRESCODE() = 33554432` The database connection will use extended result codes. | Cmn |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_FULLMUTEX() = 65536` The database connection will use the "serialized" threading mode. | Cmn |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_MEMORY() = 128` Opens the database as a in-memory database. | Cmn |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_NOFOLLOW() = 16777216` The filename is not allowed to contain a symbolic link. | Cmn |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_NOMUTEX() = 32768` The database connection will use the "multi-thread" threading mode. | Cmn |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_READONLY() = 1` Opens the database in read-only mode. | Cmn |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_READWRITE() = 2` Opens the database for reading and writing. | Cmn |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/sqlite/driver/bundled/package-summary#SQLITE_OPEN_URI() = 64` Interpret the filename as a URI. | Cmn |

## Constants

### SQLITE_OPEN_CREATE

Cmn Artifact: [androidx.sqlite:sqlite-bundled](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_CREATE) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
const val SQLITE_OPEN_CREATE = 4: Int
```

Create the database if it does not already exist.

### SQLITE_OPEN_EXRESCODE

Cmn Artifact: [androidx.sqlite:sqlite-bundled](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_EXRESCODE) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
const val SQLITE_OPEN_EXRESCODE = 33554432: Int
```

The database connection will use extended result codes.

### SQLITE_OPEN_FULLMUTEX

Cmn Artifact: [androidx.sqlite:sqlite-bundled](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_FULLMUTEX) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
const val SQLITE_OPEN_FULLMUTEX = 65536: Int
```

The database connection will use the "serialized" threading mode.

See also [SQLite In Multi-Threaded Applications](https://www.sqlite.org/threadsafe.html)

### SQLITE_OPEN_MEMORY

Cmn Artifact: [androidx.sqlite:sqlite-bundled](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_MEMORY) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
const val SQLITE_OPEN_MEMORY = 128: Int
```

Opens the database as a in-memory database.

### SQLITE_OPEN_NOFOLLOW

Cmn Artifact: [androidx.sqlite:sqlite-bundled](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_NOFOLLOW) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
const val SQLITE_OPEN_NOFOLLOW = 16777216: Int
```

The filename is not allowed to contain a symbolic link.

### SQLITE_OPEN_NOMUTEX

Cmn Artifact: [androidx.sqlite:sqlite-bundled](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_NOMUTEX) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
const val SQLITE_OPEN_NOMUTEX = 32768: Int
```

The database connection will use the "multi-thread" threading mode.

See also [SQLite In Multi-Threaded Applications](https://www.sqlite.org/threadsafe.html)

### SQLITE_OPEN_READONLY

Cmn Artifact: [androidx.sqlite:sqlite-bundled](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_READONLY) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
const val SQLITE_OPEN_READONLY = 1: Int
```

Opens the database in read-only mode.

### SQLITE_OPEN_READWRITE

Cmn Artifact: [androidx.sqlite:sqlite-bundled](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_READWRITE) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
const val SQLITE_OPEN_READWRITE = 2: Int
```

Opens the database for reading and writing.

### SQLITE_OPEN_URI

Cmn Artifact: [androidx.sqlite:sqlite-bundled](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/driver/bundled/BundledSQLite.kt+symbol:SQLITE_OPEN_URI) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
const val SQLITE_OPEN_URI = 64: Int
```

Interpret the filename as a URI.