# SQLiteStatement

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

*** ** * ** ***


```
public interface SQLiteStatement extends AutoCloseable
```

<br />

*** ** * ** ***

SQLite statement definition.

A prepared statement is a resource that must be released once it is no longer needed via its `https://developer.android.com/reference/androidx/sqlite/SQLiteStatement#close()` function.

See also [Prepared Statement](https://www.sqlite.org/c3ref/stmt.html)

## Summary

| ### Public methods |
|---|---|
| `abstract boolean` | `https://developer.android.com/reference/androidx/sqlite/SQLiteStatement#step()()` Executes the statement and evaluates the next result row if available. |

## Public methods

### step

Added in [2.5.0](https://developer.android.com/jetpack/androidx/releases/sqlite#2.5.0)

```
abstract boolean step()
```

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

A statement is initially prepared and compiled but is not executed until one or more calls to this function. If the statement execution produces result rows then this function will return `true` indicating there is a new row of data ready to be read.

| Returns |
|---|---|
| `boolean` | true if there are more rows to evaluate or false if the statement is done executing |