# SQLite

Added in 2.5.0

*** ** * ** ***


```
public final class SQLite
```

<br />

*** ** * ** ***

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/sqlite/SQLite#SQLITE_DATA_BLOB() = 4` The data type for a `BLOB` value, i.e. binary data. |
| `static final int` | `https://developer.android.com/reference/androidx/sqlite/SQLite#SQLITE_DATA_FLOAT() = 2` The data type for a 64-bit IEEE floating point number. |
| `static final int` | `https://developer.android.com/reference/androidx/sqlite/SQLite#SQLITE_DATA_INTEGER() = 1` The data type for a 64-bit signed integer. |
| `static final int` | `https://developer.android.com/reference/androidx/sqlite/SQLite#SQLITE_DATA_NULL() = 5` The data type for a `NULL` value. |
| `static final int` | `https://developer.android.com/reference/androidx/sqlite/SQLite#SQLITE_DATA_TEXT() = 3` The data type for a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html`. |

| ### Public methods |
|---|---|
| `static final void` | `https://developer.android.com/reference/androidx/sqlite/SQLite#(androidx.sqlite.SQLiteConnection).execSQL(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/sqlite/SQLiteConnection receiver, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html sql)` Executes a single SQL statement that returns no values. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/Void.html` | `https://developer.android.com/reference/androidx/sqlite/SQLite#throwSQLiteException(kotlin.Int,kotlin.String)(int errorCode, https://developer.android.com/reference/java/lang/String.html errorMsg)` Throws a `https://developer.android.com/reference/androidx/sqlite/SQLiteException` with its message formed by the given `https://developer.android.com/reference/androidx/sqlite/package-summary#throwSQLiteException(kotlin.Int,kotlin.String)` amd `https://developer.android.com/reference/androidx/sqlite/package-summary#throwSQLiteException(kotlin.Int,kotlin.String)`. |

## Constants

### SQLITE_DATA_BLOB

Artifact: [androidx.sqlite:sqlite](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/SQLite.kt+symbol:SQLITE_DATA_BLOB) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
public static final int SQLITE_DATA_BLOB = 4
```

The data type for a `BLOB` value, i.e. binary data.

### SQLITE_DATA_FLOAT

Artifact: [androidx.sqlite:sqlite](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/SQLite.kt+symbol:SQLITE_DATA_FLOAT) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
public static final int SQLITE_DATA_FLOAT = 2
```

The data type for a 64-bit IEEE floating point number.

### SQLITE_DATA_INTEGER

Artifact: [androidx.sqlite:sqlite](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/SQLite.kt+symbol:SQLITE_DATA_INTEGER) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
public static final int SQLITE_DATA_INTEGER = 1
```

The data type for a 64-bit signed integer.

### SQLITE_DATA_NULL

Artifact: [androidx.sqlite:sqlite](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/SQLite.kt+symbol:SQLITE_DATA_NULL) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
public static final int SQLITE_DATA_NULL = 5
```

The data type for a `NULL` value.

### SQLITE_DATA_TEXT

Artifact: [androidx.sqlite:sqlite](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/SQLite.kt+symbol:SQLITE_DATA_TEXT) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
public static final int SQLITE_DATA_TEXT = 3
```

The data type for a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html`.

## Public methods

### execSQL

Artifact: [androidx.sqlite:sqlite](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/SQLite.nonWeb.kt+function:execSQL) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
public static final void execSQL(@NonNull SQLiteConnection receiver, @NonNull String sql)
```

Executes a single SQL statement that returns no values.

### throwSQLiteException

Artifact: [androidx.sqlite:sqlite](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/SQLite.kt+function:throwSQLiteException) Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
public static final @NonNull Void throwSQLiteException(int errorCode, String errorMsg)
```

Throws a `https://developer.android.com/reference/androidx/sqlite/SQLiteException` with its message formed by the given `https://developer.android.com/reference/androidx/sqlite/package-summary#throwSQLiteException(kotlin.Int,kotlin.String)` amd `https://developer.android.com/reference/androidx/sqlite/package-summary#throwSQLiteException(kotlin.Int,kotlin.String)`.