[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\_complete

```ts
function sqlite3_complete(deps: SqliteWasmDep): (sql: CStringPtr) => number;
```

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

Returns 1 when UTF-8 SQL text ends with a complete statement, a final
semicolon token that does not end inside a CREATE TRIGGER body, and 0
otherwise. A line comment ends only at a newline, so SQL that ends inside one
is incomplete. It tokenizes without parsing, so it does not detect invalid
SQL.

Wasm type `i(i)`. Signature `["sqlite3_complete", "int", "string:flexible"]`
from SQLite's table.

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