# androidx.sqlite.async

*** ** * ** ***

Common/AllJavaScript

## Extension functions summary

|---|---|---|
| `suspend https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/sqlite/SQLiteConnection.https://developer.android.com/reference/kotlin/androidx/sqlite/async/package-summary#(androidx.sqlite.SQLiteConnection).executeSQL(kotlin.String)(sql: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Executes a single SQL statement that returns no values. | Cmn JS |
| `suspend https://developer.android.com/reference/kotlin/androidx/sqlite/SQLiteConnection` | `https://developer.android.com/reference/kotlin/androidx/sqlite/SQLiteDriver.https://developer.android.com/reference/kotlin/androidx/sqlite/async/package-summary#(androidx.sqlite.SQLiteDriver).open(kotlin.String)(fileName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Opens a new database connection. | Cmn JS |
| `suspend https://developer.android.com/reference/kotlin/androidx/sqlite/SQLiteStatement` | `https://developer.android.com/reference/kotlin/androidx/sqlite/SQLiteConnection.https://developer.android.com/reference/kotlin/androidx/sqlite/async/package-summary#(androidx.sqlite.SQLiteConnection).prepare(kotlin.String)(sql: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Prepares a new SQL statement. | Cmn JS |
| `suspend https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/sqlite/SQLiteStatement.https://developer.android.com/reference/kotlin/androidx/sqlite/async/package-summary#(androidx.sqlite.SQLiteStatement).step()()` Executes the statement and evaluates the next result row if available. | Cmn JS |

## Extension functions

### SQLiteConnection.executeSQL

Cmn JS Artifact: [androidx.sqlite:sqlite-async](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/async/SQLiteAsync.+function:executeSQL)

```
suspend fun SQLiteConnection.executeSQL(sql: String): Unit
```

Executes a single SQL statement that returns no values.

On web targets this function is asynchronous while for non-web it is synchronous.

### SQLiteDriver.open

Cmn JS Artifact: [androidx.sqlite:sqlite-async](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/async/SQLiteAsync.+function:open)

```
suspend fun SQLiteDriver.open(fileName: String): SQLiteConnection
```

Opens a new database connection.

On web targets this function is asynchronous while for non-web it is synchronous.

### SQLiteConnection.prepare

Cmn JS Artifact: [androidx.sqlite:sqlite-async](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/async/SQLiteAsync.+function:prepare)

```
suspend fun SQLiteConnection.prepare(sql: String): SQLiteStatement
```

Prepares a new SQL statement.

On web targets this function is asynchronous while for non-web it is synchronous.

### SQLiteStatement.step

Cmn JS Artifact: [androidx.sqlite:sqlite-async](https://developer.android.com/jetpack/androidx/releases/sqlite) [View Source](https://cs.android.com/search?q=file:androidx/sqlite/async/SQLiteAsync.+function:step)

```
suspend fun SQLiteStatement.step(): Boolean
```

Executes the statement and evaluates the next result row if available.

On web targets this function is asynchronous while for non-web it is synchronous.