[API reference](https://evolu.dev/docs/api-reference) › [@evolu/sqlite-wasm](https://evolu.dev/docs/api-reference/sqlite-wasm) › [c-api](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api) › sqlite3\_next\_stmt

```ts
function sqlite3_next_stmt(
  deps: SqliteWasmDep,
): (pDb: SqliteDbPtr, pStmt: 0 | SqliteStmtPtr) => 0 | SqliteStmtPtr;
```

Defined in: [packages/sqlite-wasm/src/CApi.ts:1881](https://github.com/evoluhq/evolu/blob/bc4578a260dd15d5bbf94b83765ca05984d194cb/packages/sqlite-wasm/src/CApi.ts#L1881)

Returns the connection's first prepared statement for a NULL pStmt, otherwise
the one after pStmt, or NULL when there is none.

Wasm type `i(ii)`. Signature `["sqlite3_next_stmt", "sqlite3_stmt*",
"sqlite3*", "sqlite3_stmt*"]` from SQLite's table.

See https://sqlite.org/c3ref/next_stmt.html.