# BundledSQLite

Added in 2.5.0

*** ** * ** ***


```
public final class BundledSQLite
```

<br />

*** ** * ** ***

## Summary

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

## Constants

### SQLITE_OPEN_CREATE

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)

```
public static final int SQLITE_OPEN_CREATE = 4
```

Create the database if it does not already exist.

### SQLITE_OPEN_EXRESCODE

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)

```
public static final int SQLITE_OPEN_EXRESCODE = 33554432
```

The database connection will use extended result codes.

### SQLITE_OPEN_FULLMUTEX

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)

```
public static final int SQLITE_OPEN_FULLMUTEX = 65536
```

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

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)

```
public static final int SQLITE_OPEN_MEMORY = 128
```

Opens the database as a in-memory database.

### SQLITE_OPEN_NOFOLLOW

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)

```
public static final int SQLITE_OPEN_NOFOLLOW = 16777216
```

The filename is not allowed to contain a symbolic link.

### SQLITE_OPEN_NOMUTEX

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)

```
public static final int SQLITE_OPEN_NOMUTEX = 32768
```

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

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)

```
public static final int SQLITE_OPEN_READONLY = 1
```

Opens the database in read-only mode.

### SQLITE_OPEN_READWRITE

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)

```
public static final int SQLITE_OPEN_READWRITE = 2
```

Opens the database for reading and writing.

### SQLITE_OPEN_URI

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)

```
public static final int SQLITE_OPEN_URI = 64
```

Interpret the filename as a URI.