Header
Turso shipssqlite3.h. Include it the same way you would for SQLite:
Compilation
Link your application againstlibturso (or libsqlite3 when using the Turso drop-in replacement build):
Quick example
Return codes
| Constant | Value | Meaning |
|---|---|---|
SQLITE_OK | 0 | Success |
SQLITE_ERROR | 1 | Generic error |
SQLITE_BUSY | 5 | Database file is locked |
SQLITE_ROW | 100 | sqlite3_step() has another row ready |
SQLITE_DONE | 101 | sqlite3_step() has finished executing |
Pages in this section
Connection
Open, close, and inspect a database connection.
Statement
Prepare, step, bind, and read column values.
WAL
libSQL WAL extension functions.