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

SQLite's C API as the wasm exports it: the C-named functions, the SQLITE_*
constants, and the struct layouts.

## Interfaces

| Interface                                                                             | Description                                                                                               |
| ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
| [SqliteCExports](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/interfaces/SqliteCExports) | The C functions this package binds, and the build's shims of the variadic ones, as the wasm exports them. |

## Type Aliases

| Type Alias                                                                                                | Description                                                                                                                                                                      |
| --------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [SqliteConfigArgs](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/type-aliases/SqliteConfigArgs)               | An option of [sqlite3\_config](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_config) and the arguments it takes.                                                   |
| [SqliteConfigIntOp](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/type-aliases/SqliteConfigIntOp)             | An option of [sqlite3\_config](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_config) that takes one int.                                                           |
| [SqliteDataType](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/type-aliases/SqliteDataType)                   | A fundamental data type, which sqlite3_column_type returns.                                                                                                                      |
| [SqliteDbConfigArgs](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/type-aliases/SqliteDbConfigArgs)           | An option of [sqlite3\_db\_config](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_db_config) and the arguments it takes.                                            |
| [SqliteDbConfigIntOp](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/type-aliases/SqliteDbConfigIntOp)         | An option of [sqlite3\_db\_config](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_db_config) that takes an int and an `int*`: a flag, or SQLITE_DBCONFIG_FP_DIGITS. |
| [SqliteLockLevel](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/type-aliases/SqliteLockLevel)                 | A file lock level of the VFS xLock and xUnlock methods.                                                                                                                          |
| [SqlitePrimaryResultCode](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/type-aliases/SqlitePrimaryResultCode) | A primary result code, the low 8 bits of an extended one. SQLITE_ROW and SQLITE_DONE are primary codes too.                                                                      |
| [SqliteResultCode](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/type-aliases/SqliteResultCode)               | A primary or extended result code.                                                                                                                                               |
| [SqliteVtabConfigOp](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/type-aliases/SqliteVtabConfigOp)           | An option of [sqlite3\_vtab\_config](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_vtab_config) the build's shim supports.                                         |

## Variables

| Variable                                                                                                                               | Description                                                                                                                                        |
| -------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| [SQLITE\_ABORT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_ABORT)                                                      | -                                                                                                                                                  |
| [SQLITE\_ABORT\_ROLLBACK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_ABORT_ROLLBACK)                                   | -                                                                                                                                                  |
| [SQLITE\_ACCESS\_EXISTS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_ACCESS_EXISTS)                                     | -                                                                                                                                                  |
| [SQLITE\_ACCESS\_READ](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_ACCESS_READ)                                         | -                                                                                                                                                  |
| [SQLITE\_ACCESS\_READWRITE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_ACCESS_READWRITE)                               | -                                                                                                                                                  |
| [SQLITE\_ALTER\_TABLE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_ALTER_TABLE)                                         | -                                                                                                                                                  |
| [SQLITE\_ANALYZE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_ANALYZE)                                                  | -                                                                                                                                                  |
| [SQLITE\_ATTACH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_ATTACH)                                                    | -                                                                                                                                                  |
| [SQLITE\_AUTH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_AUTH)                                                        | -                                                                                                                                                  |
| [SQLITE\_AUTH\_USER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_AUTH_USER)                                             | -                                                                                                                                                  |
| [SQLITE\_BLOB](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_BLOB)                                                        | -                                                                                                                                                  |
| [SQLITE\_BUSY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_BUSY)                                                        | -                                                                                                                                                  |
| [SQLITE\_BUSY\_RECOVERY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_BUSY_RECOVERY)                                     | -                                                                                                                                                  |
| [SQLITE\_BUSY\_SNAPSHOT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_BUSY_SNAPSHOT)                                     | -                                                                                                                                                  |
| [SQLITE\_BUSY\_TIMEOUT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_BUSY_TIMEOUT)                                       | -                                                                                                                                                  |
| [SQLITE\_CANTOPEN](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CANTOPEN)                                                | -                                                                                                                                                  |
| [SQLITE\_CANTOPEN\_CONVPATH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CANTOPEN_CONVPATH)                             | -                                                                                                                                                  |
| [SQLITE\_CANTOPEN\_FULLPATH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CANTOPEN_FULLPATH)                             | -                                                                                                                                                  |
| [SQLITE\_CANTOPEN\_ISDIR](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CANTOPEN_ISDIR)                                   | -                                                                                                                                                  |
| [SQLITE\_CANTOPEN\_NOTEMPDIR](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CANTOPEN_NOTEMPDIR)                           | -                                                                                                                                                  |
| [SQLITE\_CANTOPEN\_SYMLINK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CANTOPEN_SYMLINK)                               | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_COVERING\_INDEX\_SCAN](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_COVERING_INDEX_SCAN)         | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_GETMALLOC](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_GETMALLOC)                               | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_GETMUTEX](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_GETMUTEX)                                 | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_GETPCACHE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_GETPCACHE)                               | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_GETPCACHE2](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_GETPCACHE2)                             | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_HEAP](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_HEAP)                                         | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_LOG](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_LOG)                                           | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_LOOKASIDE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_LOOKASIDE)                               | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_MALLOC](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_MALLOC)                                     | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_MEMDB\_MAXSIZE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_MEMDB_MAXSIZE)                      | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_MEMSTATUS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_MEMSTATUS)                               | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_MMAP\_SIZE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_MMAP_SIZE)                              | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_MULTITHREAD](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_MULTITHREAD)                           | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_MUTEX](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_MUTEX)                                       | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_PAGECACHE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_PAGECACHE)                               | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_PCACHE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_PCACHE)                                     | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_PCACHE\_HDRSZ](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_PCACHE_HDRSZ)                        | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_PCACHE2](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_PCACHE2)                                   | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_PMASZ](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_PMASZ)                                       | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_SCRATCH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_SCRATCH)                                   | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_SERIALIZED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_SERIALIZED)                             | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_SINGLETHREAD](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_SINGLETHREAD)                         | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_SMALL\_MALLOC](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_SMALL_MALLOC)                        | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_SORTERREF\_SIZE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_SORTERREF_SIZE)                    | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_SQLLOG](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_SQLLOG)                                     | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_STMTJRNL\_SPILL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_STMTJRNL_SPILL)                    | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_URI](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_URI)                                           | -                                                                                                                                                  |
| [SQLITE\_CONFIG\_WIN32\_HEAPSIZE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONFIG_WIN32_HEAPSIZE)                    | -                                                                                                                                                  |
| [SQLITE\_CONSTRAINT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONSTRAINT)                                            | -                                                                                                                                                  |
| [SQLITE\_CONSTRAINT\_CHECK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONSTRAINT_CHECK)                               | -                                                                                                                                                  |
| [SQLITE\_CONSTRAINT\_COMMITHOOK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONSTRAINT_COMMITHOOK)                     | -                                                                                                                                                  |
| [SQLITE\_CONSTRAINT\_DATATYPE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONSTRAINT_DATATYPE)                         | -                                                                                                                                                  |
| [SQLITE\_CONSTRAINT\_FOREIGNKEY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONSTRAINT_FOREIGNKEY)                     | -                                                                                                                                                  |
| [SQLITE\_CONSTRAINT\_FUNCTION](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONSTRAINT_FUNCTION)                         | -                                                                                                                                                  |
| [SQLITE\_CONSTRAINT\_NOTNULL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONSTRAINT_NOTNULL)                           | -                                                                                                                                                  |
| [SQLITE\_CONSTRAINT\_PINNED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONSTRAINT_PINNED)                             | -                                                                                                                                                  |
| [SQLITE\_CONSTRAINT\_PRIMARYKEY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONSTRAINT_PRIMARYKEY)                     | -                                                                                                                                                  |
| [SQLITE\_CONSTRAINT\_ROWID](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONSTRAINT_ROWID)                               | -                                                                                                                                                  |
| [SQLITE\_CONSTRAINT\_TRIGGER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONSTRAINT_TRIGGER)                           | -                                                                                                                                                  |
| [SQLITE\_CONSTRAINT\_UNIQUE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONSTRAINT_UNIQUE)                             | -                                                                                                                                                  |
| [SQLITE\_CONSTRAINT\_VTAB](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CONSTRAINT_VTAB)                                 | -                                                                                                                                                  |
| [SQLITE\_CORRUPT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CORRUPT)                                                  | -                                                                                                                                                  |
| [SQLITE\_CORRUPT\_INDEX](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CORRUPT_INDEX)                                     | -                                                                                                                                                  |
| [SQLITE\_CORRUPT\_SEQUENCE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CORRUPT_SEQUENCE)                               | -                                                                                                                                                  |
| [SQLITE\_CORRUPT\_VTAB](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CORRUPT_VTAB)                                       | -                                                                                                                                                  |
| [SQLITE\_CREATE\_INDEX](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CREATE_INDEX)                                       | -                                                                                                                                                  |
| [SQLITE\_CREATE\_TABLE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CREATE_TABLE)                                       | -                                                                                                                                                  |
| [SQLITE\_CREATE\_TEMP\_INDEX](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CREATE_TEMP_INDEX)                            | -                                                                                                                                                  |
| [SQLITE\_CREATE\_TEMP\_TABLE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CREATE_TEMP_TABLE)                            | -                                                                                                                                                  |
| [SQLITE\_CREATE\_TEMP\_TRIGGER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CREATE_TEMP_TRIGGER)                        | -                                                                                                                                                  |
| [SQLITE\_CREATE\_TEMP\_VIEW](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CREATE_TEMP_VIEW)                              | -                                                                                                                                                  |
| [SQLITE\_CREATE\_TRIGGER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CREATE_TRIGGER)                                   | -                                                                                                                                                  |
| [SQLITE\_CREATE\_VIEW](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CREATE_VIEW)                                         | -                                                                                                                                                  |
| [SQLITE\_CREATE\_VTABLE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_CREATE_VTABLE)                                     | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_DEFENSIVE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_DEFENSIVE)                           | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_DQS\_DDL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_DQS_DDL)                              | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_DQS\_DML](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_DQS_DML)                              | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_ENABLE\_ATTACH\_CREATE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_ENABLE_ATTACH_CREATE)   | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_ENABLE\_ATTACH\_WRITE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_ENABLE_ATTACH_WRITE)     | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_ENABLE\_COMMENTS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_ENABLE_COMMENTS)              | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_ENABLE\_FKEY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_ENABLE_FKEY)                      | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_ENABLE\_LOAD\_EXTENSION](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION) | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_ENABLE\_QPSG](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_ENABLE_QPSG)                      | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_ENABLE\_TRIGGER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_ENABLE_TRIGGER)                | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_ENABLE\_VIEW](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_ENABLE_VIEW)                      | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_FP\_DIGITS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_FP_DIGITS)                          | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_LEGACY\_ALTER\_TABLE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_LEGACY_ALTER_TABLE)       | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_LEGACY\_FILE\_FORMAT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_LEGACY_FILE_FORMAT)       | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_LOOKASIDE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_LOOKASIDE)                           | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_MAINDBNAME](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_MAINDBNAME)                         | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_MAX](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_MAX)                                       | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_NO\_CKPT\_ON\_CLOSE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE)          | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_RESET\_DATABASE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_RESET_DATABASE)                | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_REVERSE\_SCANORDER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_REVERSE_SCANORDER)          | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_STMT\_SCANSTATUS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_STMT_SCANSTATUS)              | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_TRIGGER\_EQP](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_TRIGGER_EQP)                      | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_TRUSTED\_SCHEMA](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_TRUSTED_SCHEMA)                | -                                                                                                                                                  |
| [SQLITE\_DBCONFIG\_WRITABLE\_SCHEMA](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBCONFIG_WRITABLE_SCHEMA)              | -                                                                                                                                                  |
| [SQLITE\_DBSTATUS\_CACHE\_HIT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBSTATUS_CACHE_HIT)                          | -                                                                                                                                                  |
| [SQLITE\_DBSTATUS\_CACHE\_MISS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBSTATUS_CACHE_MISS)                        | -                                                                                                                                                  |
| [SQLITE\_DBSTATUS\_CACHE\_SPILL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBSTATUS_CACHE_SPILL)                      | -                                                                                                                                                  |
| [SQLITE\_DBSTATUS\_CACHE\_USED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBSTATUS_CACHE_USED)                        | -                                                                                                                                                  |
| [SQLITE\_DBSTATUS\_CACHE\_USED\_SHARED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBSTATUS_CACHE_USED_SHARED)         | -                                                                                                                                                  |
| [SQLITE\_DBSTATUS\_CACHE\_WRITE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBSTATUS_CACHE_WRITE)                      | -                                                                                                                                                  |
| [SQLITE\_DBSTATUS\_DEFERRED\_FKS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBSTATUS_DEFERRED_FKS)                    | -                                                                                                                                                  |
| [SQLITE\_DBSTATUS\_LOOKASIDE\_HIT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBSTATUS_LOOKASIDE_HIT)                  | -                                                                                                                                                  |
| [SQLITE\_DBSTATUS\_LOOKASIDE\_MISS\_FULL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL)     | -                                                                                                                                                  |
| [SQLITE\_DBSTATUS\_LOOKASIDE\_MISS\_SIZE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE)     | -                                                                                                                                                  |
| [SQLITE\_DBSTATUS\_LOOKASIDE\_USED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBSTATUS_LOOKASIDE_USED)                | -                                                                                                                                                  |
| [SQLITE\_DBSTATUS\_MAX](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBSTATUS_MAX)                                       | -                                                                                                                                                  |
| [SQLITE\_DBSTATUS\_SCHEMA\_USED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBSTATUS_SCHEMA_USED)                      | -                                                                                                                                                  |
| [SQLITE\_DBSTATUS\_STMT\_USED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBSTATUS_STMT_USED)                          | -                                                                                                                                                  |
| [SQLITE\_DBSTATUS\_TEMPBUF\_SPILL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DBSTATUS_TEMPBUF_SPILL)                  | -                                                                                                                                                  |
| [SQLITE\_DELETE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DELETE)                                                    | -                                                                                                                                                  |
| [SQLITE\_DENY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DENY)                                                        | -                                                                                                                                                  |
| [SQLITE\_DESERIALIZE\_FREEONCLOSE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DESERIALIZE_FREEONCLOSE)                 | -                                                                                                                                                  |
| [SQLITE\_DESERIALIZE\_READONLY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DESERIALIZE_READONLY)                       | -                                                                                                                                                  |
| [SQLITE\_DESERIALIZE\_RESIZEABLE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DESERIALIZE_RESIZEABLE)                   | -                                                                                                                                                  |
| [SQLITE\_DETACH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DETACH)                                                    | -                                                                                                                                                  |
| [SQLITE\_DETERMINISTIC](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DETERMINISTIC)                                      | -                                                                                                                                                  |
| [SQLITE\_DIRECTONLY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DIRECTONLY)                                            | -                                                                                                                                                  |
| [SQLITE\_DONE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DONE)                                                        | -                                                                                                                                                  |
| [SQLITE\_DROP\_INDEX](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DROP_INDEX)                                           | -                                                                                                                                                  |
| [SQLITE\_DROP\_TABLE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DROP_TABLE)                                           | -                                                                                                                                                  |
| [SQLITE\_DROP\_TEMP\_INDEX](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DROP_TEMP_INDEX)                                | -                                                                                                                                                  |
| [SQLITE\_DROP\_TEMP\_TABLE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DROP_TEMP_TABLE)                                | -                                                                                                                                                  |
| [SQLITE\_DROP\_TEMP\_TRIGGER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DROP_TEMP_TRIGGER)                            | -                                                                                                                                                  |
| [SQLITE\_DROP\_TEMP\_VIEW](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DROP_TEMP_VIEW)                                  | -                                                                                                                                                  |
| [SQLITE\_DROP\_TRIGGER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DROP_TRIGGER)                                       | -                                                                                                                                                  |
| [SQLITE\_DROP\_VIEW](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DROP_VIEW)                                             | -                                                                                                                                                  |
| [SQLITE\_DROP\_VTABLE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_DROP_VTABLE)                                         | -                                                                                                                                                  |
| [SQLITE\_EMPTY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_EMPTY)                                                      | -                                                                                                                                                  |
| [SQLITE\_ERROR](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_ERROR)                                                      | -                                                                                                                                                  |
| [SQLITE\_ERROR\_MISSING\_COLLSEQ](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_ERROR_MISSING_COLLSEQ)                    | -                                                                                                                                                  |
| [SQLITE\_ERROR\_RETRY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_ERROR_RETRY)                                         | -                                                                                                                                                  |
| [SQLITE\_ERROR\_SNAPSHOT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_ERROR_SNAPSHOT)                                   | -                                                                                                                                                  |
| [SQLITE\_FAIL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FAIL)                                                        | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_BEGIN\_ATOMIC\_WRITE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_BEGIN_ATOMIC_WRITE)             | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_BUSYHANDLER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_BUSYHANDLER)                             | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_CHUNK\_SIZE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_CHUNK_SIZE)                              | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_CKPT\_DONE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_CKPT_DONE)                                | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_CKPT\_START](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_CKPT_START)                              | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_CKSM\_FILE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_CKSM_FILE)                                | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_COMMIT\_ATOMIC\_WRITE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_COMMIT_ATOMIC_WRITE)           | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_COMMIT\_PHASETWO](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_COMMIT_PHASETWO)                    | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_DATA\_VERSION](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_DATA_VERSION)                          | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_EXTERNAL\_READER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_EXTERNAL_READER)                    | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_FILE\_POINTER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_FILE_POINTER)                          | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_GET\_LOCKPROXYFILE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_GET_LOCKPROXYFILE)                | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_HAS\_MOVED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_HAS_MOVED)                                | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_JOURNAL\_POINTER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_JOURNAL_POINTER)                    | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_LAST\_ERRNO](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_LAST_ERRNO)                              | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_LOCK\_TIMEOUT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_LOCK_TIMEOUT)                          | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_LOCKSTATE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_LOCKSTATE)                                 | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_MMAP\_SIZE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_MMAP_SIZE)                                | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_OVERWRITE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_OVERWRITE)                                 | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_PDB](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_PDB)                                             | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_PERSIST\_WAL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_PERSIST_WAL)                            | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_POWERSAFE\_OVERWRITE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_POWERSAFE_OVERWRITE)            | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_PRAGMA](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_PRAGMA)                                       | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_RBU](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_RBU)                                             | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_RESERVE\_BYTES](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_RESERVE_BYTES)                        | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_RESET\_CACHE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_RESET_CACHE)                            | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_ROLLBACK\_ATOMIC\_WRITE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_ROLLBACK_ATOMIC_WRITE)       | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_SET\_LOCKPROXYFILE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_SET_LOCKPROXYFILE)                | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_SIZE\_HINT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_SIZE_HINT)                                | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_SIZE\_LIMIT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_SIZE_LIMIT)                              | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_SYNC](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_SYNC)                                           | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_SYNC\_OMITTED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_SYNC_OMITTED)                          | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_TEMPFILENAME](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_TEMPFILENAME)                           | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_TRACE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_TRACE)                                         | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_VFS\_POINTER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_VFS_POINTER)                            | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_VFSNAME](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_VFSNAME)                                     | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_WAL\_BLOCK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_WAL_BLOCK)                                | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_WIN32\_AV\_RETRY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_WIN32_AV_RETRY)                     | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_WIN32\_GET\_HANDLE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_WIN32_GET_HANDLE)                 | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_WIN32\_SET\_HANDLE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_WIN32_SET_HANDLE)                 | -                                                                                                                                                  |
| [SQLITE\_FCNTL\_ZIPVFS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FCNTL_ZIPVFS)                                       | -                                                                                                                                                  |
| [SQLITE\_FLOAT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FLOAT)                                                      | -                                                                                                                                                  |
| [SQLITE\_FORMAT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FORMAT)                                                    | -                                                                                                                                                  |
| [SQLITE\_FULL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FULL)                                                        | -                                                                                                                                                  |
| [SQLITE\_FUNCTION](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_FUNCTION)                                                | -                                                                                                                                                  |
| [SQLITE\_IGNORE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IGNORE)                                                    | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_EQ](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_EQ)                        | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_FUNCTION](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_FUNCTION)            | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_GE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_GE)                        | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_GLOB](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_GLOB)                    | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_GT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_GT)                        | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_IS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_IS)                        | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_ISNOT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_ISNOT)                  | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_ISNOTNULL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_ISNOTNULL)          | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_ISNULL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_ISNULL)                | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_LE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_LE)                        | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_LIKE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_LIKE)                    | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_LIMIT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_LIMIT)                  | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_LT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_LT)                        | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_MATCH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_MATCH)                  | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_NE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_NE)                        | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_OFFSET](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_OFFSET)                | -                                                                                                                                                  |
| [SQLITE\_INDEX\_CONSTRAINT\_REGEXP](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_CONSTRAINT_REGEXP)                | -                                                                                                                                                  |
| [SQLITE\_INDEX\_SCAN\_UNIQUE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INDEX_SCAN_UNIQUE)                            | -                                                                                                                                                  |
| [SQLITE\_INNOCUOUS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INNOCUOUS)                                              | -                                                                                                                                                  |
| [SQLITE\_INSERT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INSERT)                                                    | -                                                                                                                                                  |
| [SQLITE\_INTEGER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INTEGER)                                                  | -                                                                                                                                                  |
| [SQLITE\_INTERNAL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INTERNAL)                                                | -                                                                                                                                                  |
| [SQLITE\_INTERRUPT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_INTERRUPT)                                              | -                                                                                                                                                  |
| [SQLITE\_IOCAP\_ATOMIC](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOCAP_ATOMIC)                                       | -                                                                                                                                                  |
| [SQLITE\_IOCAP\_ATOMIC16K](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOCAP_ATOMIC16K)                                 | -                                                                                                                                                  |
| [SQLITE\_IOCAP\_ATOMIC1K](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOCAP_ATOMIC1K)                                   | -                                                                                                                                                  |
| [SQLITE\_IOCAP\_ATOMIC2K](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOCAP_ATOMIC2K)                                   | -                                                                                                                                                  |
| [SQLITE\_IOCAP\_ATOMIC32K](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOCAP_ATOMIC32K)                                 | -                                                                                                                                                  |
| [SQLITE\_IOCAP\_ATOMIC4K](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOCAP_ATOMIC4K)                                   | -                                                                                                                                                  |
| [SQLITE\_IOCAP\_ATOMIC512](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOCAP_ATOMIC512)                                 | -                                                                                                                                                  |
| [SQLITE\_IOCAP\_ATOMIC64K](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOCAP_ATOMIC64K)                                 | -                                                                                                                                                  |
| [SQLITE\_IOCAP\_ATOMIC8K](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOCAP_ATOMIC8K)                                   | -                                                                                                                                                  |
| [SQLITE\_IOCAP\_BATCH\_ATOMIC](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOCAP_BATCH_ATOMIC)                          | -                                                                                                                                                  |
| [SQLITE\_IOCAP\_IMMUTABLE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOCAP_IMMUTABLE)                                 | -                                                                                                                                                  |
| [SQLITE\_IOCAP\_POWERSAFE\_OVERWRITE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOCAP_POWERSAFE_OVERWRITE)            | -                                                                                                                                                  |
| [SQLITE\_IOCAP\_SAFE\_APPEND](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOCAP_SAFE_APPEND)                            | -                                                                                                                                                  |
| [SQLITE\_IOCAP\_SEQUENTIAL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOCAP_SEQUENTIAL)                               | -                                                                                                                                                  |
| [SQLITE\_IOCAP\_UNDELETABLE\_WHEN\_OPEN](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOCAP_UNDELETABLE_WHEN_OPEN)       | -                                                                                                                                                  |
| [SQLITE\_IOERR](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR)                                                      | -                                                                                                                                                  |
| [SQLITE\_IOERR\_ACCESS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_ACCESS)                                       | -                                                                                                                                                  |
| [SQLITE\_IOERR\_AUTH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_AUTH)                                           | -                                                                                                                                                  |
| [SQLITE\_IOERR\_BEGIN\_ATOMIC](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_BEGIN_ATOMIC)                          | -                                                                                                                                                  |
| [SQLITE\_IOERR\_BLOCKED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_BLOCKED)                                     | -                                                                                                                                                  |
| [SQLITE\_IOERR\_CHECKRESERVEDLOCK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_CHECKRESERVEDLOCK)                 | -                                                                                                                                                  |
| [SQLITE\_IOERR\_CLOSE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_CLOSE)                                         | -                                                                                                                                                  |
| [SQLITE\_IOERR\_COMMIT\_ATOMIC](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_COMMIT_ATOMIC)                        | -                                                                                                                                                  |
| [SQLITE\_IOERR\_CONVPATH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_CONVPATH)                                   | -                                                                                                                                                  |
| [SQLITE\_IOERR\_CORRUPTFS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_CORRUPTFS)                                 | -                                                                                                                                                  |
| [SQLITE\_IOERR\_DATA](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_DATA)                                           | -                                                                                                                                                  |
| [SQLITE\_IOERR\_DELETE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_DELETE)                                       | -                                                                                                                                                  |
| [SQLITE\_IOERR\_DELETE\_NOENT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_DELETE_NOENT)                          | -                                                                                                                                                  |
| [SQLITE\_IOERR\_DIR\_CLOSE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_DIR_CLOSE)                                | -                                                                                                                                                  |
| [SQLITE\_IOERR\_DIR\_FSYNC](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_DIR_FSYNC)                                | -                                                                                                                                                  |
| [SQLITE\_IOERR\_FSTAT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_FSTAT)                                         | -                                                                                                                                                  |
| [SQLITE\_IOERR\_FSYNC](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_FSYNC)                                         | -                                                                                                                                                  |
| [SQLITE\_IOERR\_GETTEMPPATH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_GETTEMPPATH)                             | -                                                                                                                                                  |
| [SQLITE\_IOERR\_LOCK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_LOCK)                                           | -                                                                                                                                                  |
| [SQLITE\_IOERR\_MMAP](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_MMAP)                                           | -                                                                                                                                                  |
| [SQLITE\_IOERR\_NOMEM](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_NOMEM)                                         | -                                                                                                                                                  |
| [SQLITE\_IOERR\_RDLOCK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_RDLOCK)                                       | -                                                                                                                                                  |
| [SQLITE\_IOERR\_READ](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_READ)                                           | -                                                                                                                                                  |
| [SQLITE\_IOERR\_ROLLBACK\_ATOMIC](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_ROLLBACK_ATOMIC)                    | -                                                                                                                                                  |
| [SQLITE\_IOERR\_SEEK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_SEEK)                                           | -                                                                                                                                                  |
| [SQLITE\_IOERR\_SHMLOCK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_SHMLOCK)                                     | -                                                                                                                                                  |
| [SQLITE\_IOERR\_SHMMAP](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_SHMMAP)                                       | -                                                                                                                                                  |
| [SQLITE\_IOERR\_SHMOPEN](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_SHMOPEN)                                     | -                                                                                                                                                  |
| [SQLITE\_IOERR\_SHMSIZE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_SHMSIZE)                                     | -                                                                                                                                                  |
| [SQLITE\_IOERR\_SHORT\_READ](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_SHORT_READ)                              | -                                                                                                                                                  |
| [SQLITE\_IOERR\_TRUNCATE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_TRUNCATE)                                   | -                                                                                                                                                  |
| [SQLITE\_IOERR\_UNLOCK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_UNLOCK)                                       | -                                                                                                                                                  |
| [SQLITE\_IOERR\_VNODE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_VNODE)                                         | -                                                                                                                                                  |
| [SQLITE\_IOERR\_WRITE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_IOERR_WRITE)                                         | -                                                                                                                                                  |
| [SQLITE\_LIMIT\_ATTACHED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LIMIT_ATTACHED)                                   | -                                                                                                                                                  |
| [SQLITE\_LIMIT\_COLUMN](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LIMIT_COLUMN)                                       | -                                                                                                                                                  |
| [SQLITE\_LIMIT\_COMPOUND\_SELECT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LIMIT_COMPOUND_SELECT)                    | -                                                                                                                                                  |
| [SQLITE\_LIMIT\_EXPR\_DEPTH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LIMIT_EXPR_DEPTH)                              | -                                                                                                                                                  |
| [SQLITE\_LIMIT\_FUNCTION\_ARG](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LIMIT_FUNCTION_ARG)                          | -                                                                                                                                                  |
| [SQLITE\_LIMIT\_LENGTH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LIMIT_LENGTH)                                       | -                                                                                                                                                  |
| [SQLITE\_LIMIT\_LIKE\_PATTERN\_LENGTH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LIMIT_LIKE_PATTERN_LENGTH)           | -                                                                                                                                                  |
| [SQLITE\_LIMIT\_PARSER\_DEPTH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LIMIT_PARSER_DEPTH)                          | -                                                                                                                                                  |
| [SQLITE\_LIMIT\_SQL\_LENGTH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LIMIT_SQL_LENGTH)                              | -                                                                                                                                                  |
| [SQLITE\_LIMIT\_TRIGGER\_DEPTH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LIMIT_TRIGGER_DEPTH)                        | -                                                                                                                                                  |
| [SQLITE\_LIMIT\_VARIABLE\_NUMBER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LIMIT_VARIABLE_NUMBER)                    | -                                                                                                                                                  |
| [SQLITE\_LIMIT\_VDBE\_OP](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LIMIT_VDBE_OP)                                    | -                                                                                                                                                  |
| [SQLITE\_LIMIT\_WORKER\_THREADS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LIMIT_WORKER_THREADS)                      | -                                                                                                                                                  |
| [SQLITE\_LOCK\_EXCLUSIVE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LOCK_EXCLUSIVE)                                   | -                                                                                                                                                  |
| [SQLITE\_LOCK\_NONE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LOCK_NONE)                                             | -                                                                                                                                                  |
| [SQLITE\_LOCK\_PENDING](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LOCK_PENDING)                                       | -                                                                                                                                                  |
| [SQLITE\_LOCK\_RESERVED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LOCK_RESERVED)                                     | -                                                                                                                                                  |
| [SQLITE\_LOCK\_SHARED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LOCK_SHARED)                                         | -                                                                                                                                                  |
| [SQLITE\_LOCKED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LOCKED)                                                    | -                                                                                                                                                  |
| [SQLITE\_LOCKED\_SHAREDCACHE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LOCKED_SHAREDCACHE)                           | -                                                                                                                                                  |
| [SQLITE\_LOCKED\_VTAB](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_LOCKED_VTAB)                                         | -                                                                                                                                                  |
| [SQLITE\_MISMATCH](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_MISMATCH)                                                | -                                                                                                                                                  |
| [SQLITE\_MISUSE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_MISUSE)                                                    | -                                                                                                                                                  |
| [SQLITE\_NOLFS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_NOLFS)                                                      | -                                                                                                                                                  |
| [SQLITE\_NOMEM](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_NOMEM)                                                      | -                                                                                                                                                  |
| [SQLITE\_NOTADB](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_NOTADB)                                                    | -                                                                                                                                                  |
| [SQLITE\_NOTFOUND](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_NOTFOUND)                                                | -                                                                                                                                                  |
| [SQLITE\_NOTICE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_NOTICE)                                                    | -                                                                                                                                                  |
| [SQLITE\_NOTICE\_RECOVER\_ROLLBACK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_NOTICE_RECOVER_ROLLBACK)                | -                                                                                                                                                  |
| [SQLITE\_NOTICE\_RECOVER\_WAL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_NOTICE_RECOVER_WAL)                          | -                                                                                                                                                  |
| [SQLITE\_NULL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_NULL)                                                        | -                                                                                                                                                  |
| [SQLITE\_OK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OK)                                                            | -                                                                                                                                                  |
| [SQLITE\_OK\_LOAD\_PERMANENTLY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OK_LOAD_PERMANENTLY)                        | -                                                                                                                                                  |
| [SQLITE\_OPEN\_CREATE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_CREATE)                                         | -                                                                                                                                                  |
| [SQLITE\_OPEN\_DELETEONCLOSE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_DELETEONCLOSE)                           | -                                                                                                                                                  |
| [SQLITE\_OPEN\_EXCLUSIVE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_EXCLUSIVE)                                   | -                                                                                                                                                  |
| [SQLITE\_OPEN\_EXRESCODE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_EXRESCODE)                                   | -                                                                                                                                                  |
| [SQLITE\_OPEN\_FULLMUTEX](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_FULLMUTEX)                                   | -                                                                                                                                                  |
| [SQLITE\_OPEN\_MAIN\_DB](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_MAIN_DB)                                      | -                                                                                                                                                  |
| [SQLITE\_OPEN\_MAIN\_JOURNAL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_MAIN_JOURNAL)                            | -                                                                                                                                                  |
| [SQLITE\_OPEN\_MEMORY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_MEMORY)                                         | -                                                                                                                                                  |
| [SQLITE\_OPEN\_NOFOLLOW](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_NOFOLLOW)                                     | -                                                                                                                                                  |
| [SQLITE\_OPEN\_NOMUTEX](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_NOMUTEX)                                       | -                                                                                                                                                  |
| [SQLITE\_OPEN\_PRIVATECACHE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_PRIVATECACHE)                             | -                                                                                                                                                  |
| [SQLITE\_OPEN\_READONLY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_READONLY)                                     | -                                                                                                                                                  |
| [SQLITE\_OPEN\_READWRITE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_READWRITE)                                   | -                                                                                                                                                  |
| [SQLITE\_OPEN\_SHAREDCACHE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_SHAREDCACHE)                               | -                                                                                                                                                  |
| [SQLITE\_OPEN\_SUBJOURNAL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_SUBJOURNAL)                                 | -                                                                                                                                                  |
| [SQLITE\_OPEN\_SUPER\_JOURNAL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_SUPER_JOURNAL)                          | -                                                                                                                                                  |
| [SQLITE\_OPEN\_TEMP\_DB](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_TEMP_DB)                                      | -                                                                                                                                                  |
| [SQLITE\_OPEN\_TEMP\_JOURNAL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_TEMP_JOURNAL)                            | -                                                                                                                                                  |
| [SQLITE\_OPEN\_TRANSIENT\_DB](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_TRANSIENT_DB)                            | -                                                                                                                                                  |
| [SQLITE\_OPEN\_URI](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_URI)                                               | -                                                                                                                                                  |
| [SQLITE\_OPEN\_WAL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_OPEN_WAL)                                               | -                                                                                                                                                  |
| [SQLITE\_PERM](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_PERM)                                                        | -                                                                                                                                                  |
| [SQLITE\_PRAGMA](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_PRAGMA)                                                    | -                                                                                                                                                  |
| [SQLITE\_PREPARE\_FROM\_DDL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_PREPARE_FROM_DDL)                              | -                                                                                                                                                  |
| [SQLITE\_PREPARE\_NO\_VTAB](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_PREPARE_NO_VTAB)                                | -                                                                                                                                                  |
| [SQLITE\_PREPARE\_NORMALIZE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_PREPARE_NORMALIZE)                             | -                                                                                                                                                  |
| [SQLITE\_PREPARE\_PERSISTENT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_PREPARE_PERSISTENT)                           | -                                                                                                                                                  |
| [SQLITE\_PROTOCOL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_PROTOCOL)                                                | -                                                                                                                                                  |
| [SQLITE\_RANGE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_RANGE)                                                      | -                                                                                                                                                  |
| [SQLITE\_READ](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_READ)                                                        | -                                                                                                                                                  |
| [SQLITE\_READONLY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_READONLY)                                                | -                                                                                                                                                  |
| [SQLITE\_READONLY\_CANTINIT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_READONLY_CANTINIT)                             | -                                                                                                                                                  |
| [SQLITE\_READONLY\_CANTLOCK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_READONLY_CANTLOCK)                             | -                                                                                                                                                  |
| [SQLITE\_READONLY\_DBMOVED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_READONLY_DBMOVED)                               | -                                                                                                                                                  |
| [SQLITE\_READONLY\_DIRECTORY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_READONLY_DIRECTORY)                           | -                                                                                                                                                  |
| [SQLITE\_READONLY\_RECOVERY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_READONLY_RECOVERY)                             | -                                                                                                                                                  |
| [SQLITE\_READONLY\_ROLLBACK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_READONLY_ROLLBACK)                             | -                                                                                                                                                  |
| [SQLITE\_RECURSIVE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_RECURSIVE)                                              | -                                                                                                                                                  |
| [SQLITE\_REINDEX](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_REINDEX)                                                  | -                                                                                                                                                  |
| [SQLITE\_REPLACE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_REPLACE)                                                  | -                                                                                                                                                  |
| [SQLITE\_RESULT\_SUBTYPE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_RESULT_SUBTYPE)                                   | -                                                                                                                                                  |
| [SQLITE\_ROLLBACK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_ROLLBACK)                                                | -                                                                                                                                                  |
| [SQLITE\_ROW](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_ROW)                                                          | -                                                                                                                                                  |
| [SQLITE\_SAVEPOINT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_SAVEPOINT)                                              | -                                                                                                                                                  |
| [SQLITE\_SCHEMA](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_SCHEMA)                                                    | -                                                                                                                                                  |
| [SQLITE\_SELECT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_SELECT)                                                    | -                                                                                                                                                  |
| [SQLITE\_SELFORDER1](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_SELFORDER1)                                            | -                                                                                                                                                  |
| [SQLITE\_SERIALIZE\_NOCOPY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_SERIALIZE_NOCOPY)                               | -                                                                                                                                                  |
| [SQLITE\_SOURCE\_ID](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_SOURCE_ID)                                             | The SQLite check-in of this build.                                                                                                                 |
| [SQLITE\_STATIC](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STATIC)                                                    | -                                                                                                                                                  |
| [SQLITE\_STATUS\_MALLOC\_COUNT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STATUS_MALLOC_COUNT)                        | -                                                                                                                                                  |
| [SQLITE\_STATUS\_MALLOC\_SIZE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STATUS_MALLOC_SIZE)                          | -                                                                                                                                                  |
| [SQLITE\_STATUS\_MEMORY\_USED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STATUS_MEMORY_USED)                          | -                                                                                                                                                  |
| [SQLITE\_STATUS\_PAGECACHE\_OVERFLOW](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STATUS_PAGECACHE_OVERFLOW)            | -                                                                                                                                                  |
| [SQLITE\_STATUS\_PAGECACHE\_SIZE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STATUS_PAGECACHE_SIZE)                    | -                                                                                                                                                  |
| [SQLITE\_STATUS\_PAGECACHE\_USED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STATUS_PAGECACHE_USED)                    | -                                                                                                                                                  |
| [SQLITE\_STATUS\_PARSER\_STACK](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STATUS_PARSER_STACK)                        | -                                                                                                                                                  |
| [SQLITE\_STMTSTATUS\_AUTOINDEX](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STMTSTATUS_AUTOINDEX)                       | -                                                                                                                                                  |
| [SQLITE\_STMTSTATUS\_FILTER\_HIT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STMTSTATUS_FILTER_HIT)                    | -                                                                                                                                                  |
| [SQLITE\_STMTSTATUS\_FILTER\_MISS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STMTSTATUS_FILTER_MISS)                  | -                                                                                                                                                  |
| [SQLITE\_STMTSTATUS\_FULLSCAN\_STEP](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STMTSTATUS_FULLSCAN_STEP)              | -                                                                                                                                                  |
| [SQLITE\_STMTSTATUS\_MEMUSED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STMTSTATUS_MEMUSED)                           | -                                                                                                                                                  |
| [SQLITE\_STMTSTATUS\_REPREPARE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STMTSTATUS_REPREPARE)                       | -                                                                                                                                                  |
| [SQLITE\_STMTSTATUS\_RUN](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STMTSTATUS_RUN)                                   | -                                                                                                                                                  |
| [SQLITE\_STMTSTATUS\_SORT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STMTSTATUS_SORT)                                 | -                                                                                                                                                  |
| [SQLITE\_STMTSTATUS\_VM\_STEP](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_STMTSTATUS_VM_STEP)                          | -                                                                                                                                                  |
| [SQLITE\_SUBTYPE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_SUBTYPE)                                                  | -                                                                                                                                                  |
| [SQLITE\_SYNC\_DATAONLY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_SYNC_DATAONLY)                                     | -                                                                                                                                                  |
| [SQLITE\_SYNC\_FULL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_SYNC_FULL)                                             | -                                                                                                                                                  |
| [SQLITE\_SYNC\_NORMAL](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_SYNC_NORMAL)                                         | -                                                                                                                                                  |
| [SQLITE\_TEXT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_TEXT)                                                        | -                                                                                                                                                  |
| [SQLITE\_TOOBIG](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_TOOBIG)                                                    | -                                                                                                                                                  |
| [SQLITE\_TRACE\_CLOSE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_TRACE_CLOSE)                                         | -                                                                                                                                                  |
| [SQLITE\_TRACE\_PROFILE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_TRACE_PROFILE)                                     | -                                                                                                                                                  |
| [SQLITE\_TRACE\_ROW](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_TRACE_ROW)                                             | -                                                                                                                                                  |
| [SQLITE\_TRACE\_STMT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_TRACE_STMT)                                           | -                                                                                                                                                  |
| [SQLITE\_TRANSACTION](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_TRANSACTION)                                          | -                                                                                                                                                  |
| [SQLITE\_TRANSIENT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_TRANSIENT)                                              | -                                                                                                                                                  |
| [SQLITE\_TXN\_NONE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_TXN_NONE)                                               | -                                                                                                                                                  |
| [SQLITE\_TXN\_READ](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_TXN_READ)                                               | -                                                                                                                                                  |
| [SQLITE\_TXN\_WRITE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_TXN_WRITE)                                             | -                                                                                                                                                  |
| [SQLITE\_UPDATE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_UPDATE)                                                    | -                                                                                                                                                  |
| [SQLITE\_UTF16](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_UTF16)                                                      | -                                                                                                                                                  |
| [SQLITE\_UTF16\_ALIGNED](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_UTF16_ALIGNED)                                     | -                                                                                                                                                  |
| [SQLITE\_UTF16BE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_UTF16BE)                                                  | -                                                                                                                                                  |
| [SQLITE\_UTF16LE](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_UTF16LE)                                                  | -                                                                                                                                                  |
| [SQLITE\_UTF8](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_UTF8)                                                        | -                                                                                                                                                  |
| [SQLITE\_UTF8\_ZT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_UTF8_ZT)                                                 | -                                                                                                                                                  |
| [SQLITE\_VERSION](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_VERSION)                                                  | The SQLite version of this build.                                                                                                                  |
| [SQLITE\_VERSION\_NUMBER](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_VERSION_NUMBER)                                   | The SQLite version number of this build.                                                                                                           |
| [SQLITE\_VTAB\_CONSTRAINT\_SUPPORT](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_VTAB_CONSTRAINT_SUPPORT)                | -                                                                                                                                                  |
| [SQLITE\_VTAB\_DIRECTONLY](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_VTAB_DIRECTONLY)                                 | -                                                                                                                                                  |
| [SQLITE\_VTAB\_INNOCUOUS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_VTAB_INNOCUOUS)                                   | -                                                                                                                                                  |
| [SQLITE\_VTAB\_USES\_ALL\_SCHEMAS](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_VTAB_USES_ALL_SCHEMAS)                   | -                                                                                                                                                  |
| [SQLITE\_WARNING](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_WARNING)                                                  | -                                                                                                                                                  |
| [SQLITE\_WARNING\_AUTOINDEX](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_WARNING_AUTOINDEX)                             | -                                                                                                                                                  |
| [SQLITE\_WASM\_DEALLOC](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/SQLITE_WASM_DEALLOC)                                       | The function-table index of `sqlite3_free` in this build. Passed as a destructor of text or a blob, it hands the buffer to SQLite, which frees it. |
| [sqlite3\_file\_layout](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/sqlite3_file_layout)                                       | The layout of `sqlite3_file` in this wasm build.                                                                                                   |
| [sqlite3\_index\_constraint\_layout](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/sqlite3_index_constraint_layout)              | The layout of `sqlite3_index_constraint` in this wasm build.                                                                                       |
| [sqlite3\_index\_constraint\_usage\_layout](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/sqlite3_index_constraint_usage_layout) | The layout of `sqlite3_index_constraint_usage` in this wasm build.                                                                                 |
| [sqlite3\_index\_info\_layout](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/sqlite3_index_info_layout)                          | The layout of `sqlite3_index_info` in this wasm build.                                                                                             |
| [sqlite3\_index\_orderby\_layout](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/sqlite3_index_orderby_layout)                    | The layout of `sqlite3_index_orderby` in this wasm build.                                                                                          |
| [sqlite3\_io\_methods\_layout](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/sqlite3_io_methods_layout)                          | The layout of `sqlite3_io_methods` in this wasm build.                                                                                             |
| [sqlite3\_module\_layout](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/sqlite3_module_layout)                                   | The layout of `sqlite3_module` in this wasm build.                                                                                                 |
| [sqlite3\_vfs\_layout](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/sqlite3_vfs_layout)                                         | The layout of `sqlite3_vfs` in this wasm build.                                                                                                    |
| [sqlite3\_vtab\_cursor\_layout](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/sqlite3_vtab_cursor_layout)                        | The layout of `sqlite3_vtab_cursor` in this wasm build.                                                                                            |
| [sqlite3\_vtab\_layout](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/sqlite3_vtab_layout)                                       | The layout of `sqlite3_vtab` in this wasm build.                                                                                                   |
| [sqliteWasmBuildHash](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/variables/sqliteWasmBuildHash)                                         | Identifies the build these constants and the CApi functions describe.                                                                              |

## Functions

| Function                                                                                                               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ---------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [sqlite3\_aggregate\_context](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_aggregate_context)           | Returns the state memory of the current aggregate function instance: the first call allocates nBytes of zeroed memory, later calls return the same buffer, and SQLite frees it when the aggregate concludes. Returns NULL when the first call passes nBytes of zero or less or runs out of memory.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [sqlite3\_auto\_extension](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_auto_extension)                 | Registers an entry point that SQLite calls for every new connection, where an error it returns fails the open; registering one twice is a no-op. Despite the `void (*)(void)` prototype SQLite calls it as `int xEntryPoint(sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pThunk)`, so its function table entry must have that type.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [sqlite3\_backup\_finish](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_backup_finish)                   | Releases the backup, rolling back an unfinished copy, and returns the result of the most recent [sqlite3\_backup\_step](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_backup_step) if that failed, SQLITE_BUSY and SQLITE_LOCKED included, otherwise SQLITE_OK. Every backup [sqlite3\_backup\_init](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_backup_init) returned needs it, also after an error.                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [sqlite3\_backup\_init](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_backup_init)                       | Prepares to copy the database zSourceName of pSource, such as main, into the database zDestName of pDest, which [sqlite3\_backup\_step](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_backup_step) does, and returns the backup, or NULL with the error in pDest. It fails while pDest has any transaction open, when both are the same connection, and for an unknown database name.                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [sqlite3\_backup\_pagecount](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_backup_pagecount)             | Returns how many pages the source database had after the last [sqlite3\_backup\_step](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_backup_step) that returned SQLITE_OK or SQLITE_DONE, or 0 before one did.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [sqlite3\_backup\_remaining](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_backup_remaining)             | Returns how many pages were left to copy after the last [sqlite3\_backup\_step](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_backup_step) that returned SQLITE_OK or SQLITE_DONE, or 0 before one did.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [sqlite3\_backup\_step](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_backup_step)                       | Copies up to nPage pages, or all that remain when nPage is negative. Returns SQLITE_DONE once every page is copied, SQLITE_OK while pages remain, SQLITE_BUSY or SQLITE_LOCKED when a lock prevents it for now, or another error, after which only [sqlite3\_backup\_finish](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_backup_finish) is useful.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [sqlite3\_bind\_blob](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_bind_blob)                           | Binds n bytes to a parameter; a negative n is undefined behavior. A NULL address binds SQL NULL, so an empty blob needs a non-NULL address.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [sqlite3\_bind\_double](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_bind_double)                       | Binds a double to a parameter; SQLite stores NaN as NULL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [sqlite3\_bind\_int](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_bind_int)                             | Binds a 32-bit integer to a parameter. The wasm boundary converts the number with ToInt32, so a fraction is truncated and a value outside the int32 range wraps silently.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [sqlite3\_bind\_int64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_bind_int64)                         | Binds a 64-bit integer to a parameter. The wasm boundary wraps a bigint outside the int64 range silently.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [sqlite3\_bind\_null](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_bind_null)                           | Binds NULL to a parameter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [sqlite3\_bind\_parameter\_count](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_bind_parameter_count)    | Returns the index of a statement's largest SQL parameter, which is the number of parameters unless `?NNN` parameters leave gaps.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [sqlite3\_bind\_parameter\_index](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_bind_parameter_index)    | Returns the 1-based index of the SQL parameter with a UTF-8 name that includes its prefix, such as `:name`, or 0 when no parameter matches.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [sqlite3\_bind\_parameter\_name](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_bind_parameter_name)      | Returns the name of the SQL parameter at a 1-based index, including its prefix as in `:name` or `?NNN`, or NULL for a nameless `?` parameter or an index out of range. The statement owns the string.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [sqlite3\_bind\_pointer](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_bind_pointer)                     | Binds SQL NULL carrying pPtr tagged with the type string zPType, which only [sqlite3\_value\_pointer](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_pointer) with an equal type string returns. The type string should be static because SQLite keeps its address, and SQLite calls xDestructor, unless NULL, with pPtr when done, even when binding fails.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [sqlite3\_bind\_text](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_bind_text)                           | Binds UTF-8 text to a parameter: n bytes, which may include NUL characters, or up to the first NUL when n is negative. A NULL address binds SQL NULL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [sqlite3\_bind\_zeroblob](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_bind_zeroblob)                   | Binds a blob of n zero bytes to a parameter without allocating its content; a negative n binds a zero-length blob.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [sqlite3\_busy\_handler](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_busy_handler)                     | Sets the connection's only busy handler, replacing any other, including the one [sqlite3\_busy\_timeout](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_busy_timeout) sets, or removes it for NULL so a lock fails with SQLITE_BUSY at once. SQLite calls it with pArg and the number of earlier calls for the same lock and retries while it returns non-zero; it must not modify the connection.                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [sqlite3\_busy\_timeout](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_busy_timeout)                     | Sets a busy handler that sleeps and retries until at least ms milliseconds have passed, replacing any other busy handler; ms of zero or less removes all busy handlers.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [sqlite3\_cancel\_auto\_extension](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_cancel_auto_extension)  | Unregisters an entry point [sqlite3\_auto\_extension](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_auto_extension) registered, returning 1 when it was registered and 0 otherwise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [sqlite3\_changes](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_changes)                                | Returns the rows changed by the connection's most recently completed INSERT, UPDATE or DELETE, without changes by triggers, foreign key actions or REPLACE; other statements leave it unchanged, except a DROP TABLE that, with foreign keys on, first deletes the rows of a table that foreign keys reference. The result is undefined above the int range, which [sqlite3\_changes64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_changes64) covers.                                                                                                                                                                                                                                                                                                                                                                                          |
| [sqlite3\_changes64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_changes64)                            | Returns the rows changed by the connection's most recently completed INSERT, UPDATE or DELETE, without changes by triggers, foreign key actions or REPLACE; other statements leave it unchanged, except a DROP TABLE that, with foreign keys on, first deletes the rows of a table that foreign keys reference.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [sqlite3\_clear\_bindings](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_clear_bindings)                 | Sets every parameter of a statement to NULL, which [sqlite3\_reset](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_reset) does not do.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [sqlite3\_close\_v2](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_close_v2)                             | Closes a connection. With unfinalized statements the close is deferred and the connection keeps its files open.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [sqlite3\_collation\_needed](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_collation_needed)             | Sets the connection's callback for an undefined collation sequence, replacing the previous one. SQLite calls it with pArg, the connection, the preferred text encoding and the UTF-8 collation name, and the callback should register that collation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [sqlite3\_column\_blob](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_column_blob)                       | Returns the address of a result column's bytes, or NULL for a zero-length blob, SQL NULL or out of memory; call it before [sqlite3\_column\_bytes](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_column_bytes). The memory stays valid until a type conversion of the column or the next step, reset or finalize, and SQLite frees it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [sqlite3\_column\_bytes](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_column_bytes)                     | Returns the byte length of the text or blob the preceding column call returned.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [sqlite3\_column\_count](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_column_count)                     | Returns the number of result columns of a statement.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [sqlite3\_column\_decltype](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_column_decltype)               | Returns the declared type of the table column a result column comes from, or NULL when the result column is an expression or subquery. The statement owns the string.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [sqlite3\_column\_double](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_column_double)                   | Returns a result column of the current row as a double, converting other types, such as NULL to 0.0.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [sqlite3\_column\_int](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_column_int)                         | Returns a result column of the current row as a 32-bit integer, converting other types; an integer outside the 32-bit range keeps only its low 32 bits.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [sqlite3\_column\_int64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_column_int64)                     | Returns a result column of the current row as a 64-bit integer, converting other types as CAST does, and 0 for NULL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [sqlite3\_column\_name](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_column_name)                       | Returns the name of a result column, which is its AS alias or else unspecified, or NULL when out of memory or the index is out of range. The statement owns the string until it is finalized or re-prepared.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [sqlite3\_column\_text](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_column_text)                       | Returns the address of a result column as NUL-terminated UTF-8 text that can contain NUL characters, so read its length with [sqlite3\_column\_bytes](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_column_bytes) afterwards. Returns NULL for SQL NULL and when out of memory, which [sqlite3\_errcode](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_errcode) tells apart; the text stays valid until the next step, reset or finalize, or a conversion by another column call.                                                                                                                                                                                                                                                                                                                                                   |
| [sqlite3\_column\_type](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_column_type)                       | Returns the storage class of a result column in the current row. Read it before any other column function, which can convert the value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [sqlite3\_column\_value](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_column_value)                     | Returns a result column of the current row as an unprotected sqlite3_value, valid until the next step, reset or finalize. This build is single-threaded (SQLITE_THREADSAFE=0), so an unprotected value works wherever a protected one does, and [sqlite3\_value\_dup](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_dup) copies it to outlive the row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [sqlite3\_commit\_hook](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_commit_hook)                       | Sets the connection's commit callback, replacing the previous one, or removes it for NULL, and returns the previous call's pArg, NULL for the first call. SQLite calls it with pArg before each commit and turns the commit into a rollback when it returns non-zero; it must not modify the connection.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [sqlite3\_compileoption\_get](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_compileoption_get)           | Returns the N-th option defined at compile time, without its SQLITE_ prefix, or NULL when N is out of range. The string is static.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [sqlite3\_compileoption\_used](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_compileoption_used)         | Returns 1 if the named option, with or without its SQLITE_ prefix, was defined at compile time, and 0 otherwise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [sqlite3\_complete](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_complete)                              | 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [sqlite3\_config](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_config)                                  | Changes a global option of the library, which works only before [sqlite3\_initialize](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_initialize) or after [sqlite3\_shutdown](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_shutdown) and otherwise returns SQLITE_MISUSE. The loader initializes the library, so call it after sqlite3_shutdown, then initialize the library again with initializeSqliteWasm, as sqlite3_shutdown explains.                                                                                                                                                                                                                                                                                                                                                                                         |
| [sqlite3\_context\_db\_handle](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_context_db_handle)          | Returns the connection that registered the application-defined function being called.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [sqlite3\_create\_collation](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_create_collation)             | Adds, replaces or, with a NULL xCompare, removes a collation named zName for text in the eTextRep encoding. `xCompare(pArg, n1, s1, n2, s2)` compares two strings of the given byte lengths and returns a negative number, zero or a positive number; SQLite behavior is undefined when the comparison is inconsistent.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [sqlite3\_create\_collation\_v2](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_create_collation_v2)      | Works like [sqlite3\_create\_collation](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_create_collation), and SQLite calls a non-NULL xDestroy with pArg when the collation is replaced or the connection closes. Unlike other SQLite functions, it does not call xDestroy when this call fails, so the caller then disposes of pArg.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [sqlite3\_create\_function](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_create_function)               | Adds, redefines or, with xFunc, xStep and xFinal all NULL, removes an SQL function of the connection: xFunc implements a scalar function, xStep with xFinal an aggregate. nArg is the argument count or -1 for any, and eTextRep the preferred text encoding, optionally with flags such as SQLITE_DETERMINISTIC and SQLITE_DIRECTONLY.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [sqlite3\_create\_function\_v2](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_create_function_v2)        | Works like [sqlite3\_create\_function](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_create_function), and SQLite calls a non-NULL xDestroy with pApp when the function is redefined or removed, when the connection closes, and when this call fails.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [sqlite3\_data\_count](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_data_count)                         | Returns the number of columns in the statement's current row, or 0 when the last step did not return SQLITE_ROW or the statement is NULL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [sqlite3\_db\_config](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_db_config)                           | Changes or reads an option of a connection, returning SQLITE_OK or an error code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [sqlite3\_db\_filename](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_db_filename)                       | Returns the absolute filename of a schema of the connection, valid until the schema is detached or the connection closes, or NULL or an empty string for a temporary or in-memory database or an unknown schema. A non-NULL result can be passed to the `sqlite3_uri_*` functions.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [sqlite3\_db\_handle](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_db_handle)                           | Returns the connection a prepared statement belongs to.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [sqlite3\_db\_name](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_db_name)                               | Returns the schema name of the connection's N-th database, where 0 is main and 1 is temp, or NULL when N is out of range. SQLite owns the string, which any schema change, such as ATTACH, DETACH, [sqlite3\_serialize](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_serialize) or [sqlite3\_deserialize](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_deserialize), can free.                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [sqlite3\_db\_readonly](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_db_readonly)                       | Returns 1 if a schema of the connection is read-only, 0 if it is read/write, or -1 when no schema has that name.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [sqlite3\_db\_status](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_db_status)                           | Writes the current and highest values of a connection status counter to pCur and pHiwtr, resetting the highest to the current value when resetFlg is non-zero. Values above the int range are truncated; [sqlite3\_db\_status64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_db_status64) returns them in full.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [sqlite3\_db\_status64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_db_status64)                       | Reads a connection's SQLITE_DBSTATUS_* counter into the sqlite3_int64 at pCur and its highwater mark into the sqlite3_int64 at pHiwtr, 8 bytes each, resetting the mark to the current value when resetFlg is non-zero.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [sqlite3\_deserialize](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_deserialize)                        | Reopens a schema, main for NULL, as an in-memory database over the first szDb bytes of a szBuf-byte buffer, which must stay valid and unmodified until the connection closes. szBuf must be at least szDb, and about 20 bytes more for content that may be malformed, which SQLite may read a few bytes past. With SQLITE_DESERIALIZE_FREEONCLOSE, SQLite takes ownership of the [sqlite3\_malloc](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_malloc)'d buffer and frees it, even when deserializing fails.                                                                                                                                                                                                                                                                                                                                    |
| [sqlite3\_errcode](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_errcode)                                | Returns the result code of the connection's most recent API call if that call failed, as a primary code unless extended result codes are enabled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [sqlite3\_errmsg](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_errmsg)                                  | Returns the English message of the connection's most recent error, or NULL when none is available. SQLite owns the string, which the next call on the connection can overwrite or free.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [sqlite3\_error\_offset](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_error_offset)                     | Returns the byte offset in the SQL of the most recent error, or -1.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [sqlite3\_errstr](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_errstr)                                  | Returns the English description of a result code, or NULL when none is available. The string is static and must not be freed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [sqlite3\_exec](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_exec)                                      | Runs zero or more semicolon-separated UTF-8 SQL statements, stopping at the first error, and calls the callback, unless NULL, with pArg for each result row; a non-zero callback result stops with SQLITE_ABORT. Unless errmsg is NULL, it receives NULL on success or an error message the caller frees with [sqlite3\_free](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_free).                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [sqlite3\_expanded\_sql](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_expanded_sql)                     | Returns the statement's SQL with bound parameters expanded as literals, in memory the caller frees with [sqlite3\_free](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_free), or NULL when out of memory, above SQLITE_LIMIT_LENGTH, or when built with SQLITE_OMIT_TRACE.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [sqlite3\_extended\_errcode](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_extended_errcode)             | Returns the connection's most recent extended result code.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [sqlite3\_extended\_result\_codes](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_extended_result_codes)  | Enables extended result codes for the connection when onoff is non-zero and disables them otherwise. They are disabled by default, and [sqlite3\_extended\_errcode](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_extended_errcode) returns them regardless.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [sqlite3\_file\_control](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_file_control)                     | Calls the xFileControl method of a schema's file, main for a NULL zDbName, with an opcode and its argument and returns its result; the core handles a few opcodes, such as SQLITE_FCNTL_FILE_POINTER, itself. An unknown schema returns SQLITE_ERROR without recording it for [sqlite3\_errcode](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_errcode).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [sqlite3\_finalize](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_finalize)                              | Destroys a prepared statement and returns the error of its most recent evaluation if that failed, otherwise SQLITE_OK; NULL is a harmless no-op.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [sqlite3\_free](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_free)                                      | Frees memory from [sqlite3\_malloc](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_malloc) or from a SQLite function that returns owned memory.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [sqlite3\_get\_autocommit](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_get_autocommit)                 | Returns 0 from BEGIN until the COMMIT or ROLLBACK that ends the transaction, and non-zero otherwise. It is the only way to tell whether SQLite rolled back a transaction automatically after an error such as SQLITE_FULL or SQLITE_BUSY.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [sqlite3\_get\_auxdata](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_get_auxdata)                       | Returns the auxiliary data [sqlite3\_set\_auxdata](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_set_auxdata) associated with the 0-based N-th argument of the current function call, or NULL when there is none or SQLite discarded it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [sqlite3\_initialize](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_initialize)                          | Initializes the library, returning SQLITE_OK or an error code. Once the library is initialized, further calls are harmless no-ops until [sqlite3\_shutdown](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_shutdown).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [sqlite3\_interrupt](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_interrupt)                            | Stops the connection's running statements, and statements started before they all finish, at their earliest opportunity with SQLITE_INTERRUPT; an interrupted write in an explicit transaction rolls the transaction back. With no running statement it does nothing.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [sqlite3\_is\_interrupted](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_is_interrupted)                 | Returns 1 while an [sqlite3\_interrupt](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_interrupt) is in effect for the connection, and 0 otherwise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [sqlite3\_keyword\_check](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_keyword_check)                   | Returns non-zero if the nName bytes of UTF-8 at zName, which need no NUL terminator, are an SQL keyword in any letter case, and 0 otherwise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [sqlite3\_keyword\_count](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_keyword_count)                   | Returns the number of distinct SQL keywords the library recognizes, which depends on compile-time options.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [sqlite3\_keyword\_name](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_keyword_name)                     | Writes the address and byte length of the 0-based index-th SQL keyword, UTF-8 without a NUL terminator in static memory, and returns SQLITE_ERROR when the index is out of range. Both output pointers must be valid.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [sqlite3\_last\_insert\_rowid](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_last_insert_rowid)          | Returns the rowid of the connection's most recent successful INSERT into a rowid table, or 0 if there was none. Inside a trigger it returns the trigger's insert until the trigger ends, and a failed INSERT leaves it unchanged.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [sqlite3\_libversion](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_libversion)                          | Returns the library's version string, the SQLITE_VERSION it was built with, in static memory.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [sqlite3\_libversion\_number](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_libversion_number)           | Returns the SQLITE_VERSION_NUMBER the library was built with.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [sqlite3\_limit](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_limit)                                    | Sets a run-time limit of the connection and returns its prior value; a negative newVal only reads it, and a value above the compile-time maximum is lowered to that maximum.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [sqlite3\_malloc](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_malloc)                                  | Allocates at least byteLength bytes, returning NULL when out of memory or when byteLength is zero or negative.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [sqlite3\_malloc64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_malloc64)                              | Allocates memory like [sqlite3\_malloc](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_malloc) with a 64-bit size, returning NULL when out of memory or for zero bytes.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [sqlite3\_msize](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_msize)                                    | Returns the usable byte size of memory from [sqlite3\_malloc](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_malloc), [sqlite3\_realloc](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_realloc) or their 64-bit variants, which can exceed the requested size, or 0 for NULL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [sqlite3\_next\_stmt](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_next_stmt)                           | Returns the connection's first prepared statement for a NULL pStmt, otherwise the one after pStmt, or NULL when there is none.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [sqlite3\_open](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_open)                                      | Opens a database connection for reading and writing, creating the database when it does not exist, with the default VFS. SQLite writes a handle even when opening fails, except when out of memory, and that handle must be closed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [sqlite3\_open\_v2](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_open_v2)                               | Opens a database connection. SQLite writes a handle even when opening fails, except when out of memory, and that handle must be closed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [sqlite3\_overload\_function](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_overload_function)           | Ensures a global SQL function with this name and argument count exists, creating a placeholder that raises an error when called, so a virtual table's xFindFunction can overload it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [sqlite3\_prepare\_v2](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_prepare_v2)                         | Compiles the first statement of UTF-8 SQL as [sqlite3\_prepare\_v3](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_prepare_v3) does with no flags, reading at most nByte bytes or up to a NUL when nByte is negative, and writes the statement to `*ppStmt` and the address of the uncompiled rest to `*pzTail`. `*ppStmt` is NULL on error and for SQL without a statement, such as only a comment; the caller finalizes a non-NULL one.                                                                                                                                                                                                                                                                                                                                                                                                          |
| [sqlite3\_prepare\_v3](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_prepare_v3)                         | Compiles the first statement of UTF-8 SQL, reading at most nByte bytes or up to a NUL when nByte is negative, and writes the statement to `*ppStmt` and the address of the uncompiled rest to `*pzTail`. `*ppStmt` is NULL on error and for SQL without a statement, such as only a comment; the caller finalizes a non-NULL one.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [sqlite3\_randomness](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_randomness)                          | Writes N pseudo-random bytes to P. A call with N below 1 or a NULL P writes nothing and makes the next call reseed from the default VFS's xRandomness.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [sqlite3\_realloc](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_realloc)                                | Resizes memory from [sqlite3\_malloc](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_malloc), keeping its leading bytes, and returns the new address, after which the old one is invalid. A NULL pointer allocates, a size of 0 or less frees and returns NULL, and when out of memory it returns NULL and leaves the old allocation intact.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [sqlite3\_realloc64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_realloc64)                            | Resizes memory from [sqlite3\_malloc](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_malloc), moving its contents to the returned address; NULL memory allocates, and a zero size frees it and returns NULL. When out of memory it returns NULL and leaves the old memory allocated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [sqlite3\_reset](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_reset)                                    | Resets a statement so it can run again, keeping its bindings. It returns the error of a failed most recent step, and can fail on its own, such as with SQLITE_BUSY when an INSERT with RETURNING stepped only once cannot commit.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [sqlite3\_reset\_auto\_extension](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_reset_auto_extension)    | Unregisters every entry point [sqlite3\_auto\_extension](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_auto_extension) registered.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [sqlite3\_result\_blob](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_blob)                       | Sets an application-defined function's result to n bytes. A NULL address sets SQL NULL, as for [sqlite3\_bind\_blob](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_bind_blob), so an empty blob needs a non-NULL address or [sqlite3\_result\_zeroblob](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_zeroblob).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [sqlite3\_result\_double](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_double)                   | Sets an application-defined function's result to a double; SQLite stores NaN as NULL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [sqlite3\_result\_error](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_error)                     | Makes an application-defined function fail with a copy of a UTF-8 message of n bytes, or up to its NUL terminator when n is negative. It resets the error code to SQLITE_ERROR, so call [sqlite3\_result\_error\_code](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_error_code) after it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [sqlite3\_result\_error\_code](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_error_code)          | Makes an application-defined function fail with a result code instead of SQLITE_ERROR, and with the code's default message when no result was set. Call it after [sqlite3\_result\_error](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_error), which resets the code to SQLITE_ERROR.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [sqlite3\_result\_error\_nomem](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_error_nomem)        | Makes an application-defined function fail with SQLITE_NOMEM, as a failed memory allocation would.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [sqlite3\_result\_error\_toobig](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_error_toobig)      | Makes an application-defined function fail with SQLITE_TOOBIG, reporting a string or blob too big to represent.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [sqlite3\_result\_int](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_int)                         | Sets an application-defined function's result to a 32-bit integer. The wasm boundary converts the number with ToInt32, so a fraction is truncated and a value outside the int32 range wraps silently.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [sqlite3\_result\_int64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_int64)                     | Sets an application-defined function's result to a 64-bit integer. The wasm boundary wraps a bigint outside the int64 range silently.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [sqlite3\_result\_null](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_null)                       | Sets an application-defined function's result to NULL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [sqlite3\_result\_pointer](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_pointer)                 | Sets an application-defined function's result to an SQL NULL carrying pPtr, which [sqlite3\_value\_pointer](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_pointer) returns for an equal type name. SQLite keeps zPType itself, so it must outlive the value, and calls a non-NULL xDestructor with pPtr when done with it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [sqlite3\_result\_subtype](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_subtype)                 | Sets the subtype of an application-defined function's result, keeping only its low 8 bits. The function must be registered with SQLITE_RESULT_SUBTYPE: without it the subtype might not be set, and a build with SQLITE_STRICT_SUBTYPE, such as this one, fails the function with an error. SQLite's table declares the first parameter as sqlite3_value*, but the C function takes sqlite3_context*.                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [sqlite3\_result\_text](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_text)                       | Sets an application-defined function's result to UTF-8 text of n bytes, or up to its NUL terminator when n is negative. A NULL address sets SQL NULL, as for [sqlite3\_bind\_text](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_bind_text).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [sqlite3\_result\_zeroblob](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_zeroblob)               | Sets an application-defined function's result to a blob of n zero bytes, 0 for a negative n. A size beyond SQLITE_LIMIT_LENGTH makes the function fail with SQLITE_TOOBIG.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [sqlite3\_result\_zeroblob64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_zeroblob64)           | Sets an application-defined function's result to a blob of n zero bytes. Returns SQLITE_TOOBIG, and makes the function fail with that error, when n exceeds the connection's length limit.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [sqlite3\_rollback\_hook](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_rollback_hook)                   | Registers the callback SQLite calls with pArg whenever a transaction rolls back, except when closing the connection, replacing the previous one; NULL removes it. Returns the previous pArg or NULL; the callback must not use the connection, not even to prepare or step a statement.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [sqlite3\_serialize](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_serialize)                            | Copies a schema, NULL meaning main, into memory from [sqlite3\_malloc64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_malloc64) that the caller frees, writing its byte size as an 8-byte sqlite3_int64 to piSize unless NULL. An empty database first gets its first page from an empty write transaction. Pages are read through the pager, so an encrypted database comes out decrypted, and a page that fails to read comes out zero-filled. Returns NULL when out of memory, for an unknown schema or a database without pages, and with SQLITE_SERIALIZE_NOCOPY returns SQLite's own buffer of a deserialized database, or NULL, instead of a copy, which the caller must neither free nor modify. Only a call whose mFlags is 0 returns memory [sqlite3\_free](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_free) accepts. |
| [sqlite3\_set\_auxdata](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_set_auxdata)                       | Attaches pAux to the N-th argument of the running application-defined function, where [sqlite3\_get\_auxdata](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_get_auxdata) finds it while the argument stays the same. SQLite may discard it at any time, even before this call returns, calling a non-NULL xDelete with pAux, so pAux must not be used afterwards.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [sqlite3\_set\_errmsg](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_set_errmsg)                         | Sets the error code and a copy of zErrMsg, or the code's default message for NULL, that [sqlite3\_errcode](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_errcode) and [sqlite3\_errmsg](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_errmsg) report for a connection until SQLite or another call replaces them.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [sqlite3\_set\_last\_insert\_rowid](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_set_last_insert_rowid) | Sets the value [sqlite3\_last\_insert\_rowid](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_last_insert_rowid) returns for the connection without inserting a row.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [sqlite3\_shutdown](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_shutdown)                              | Deallocates the resources [sqlite3\_initialize](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_initialize) allocated. Every connection must be closed and every other SQLite resource freed first; only the first call after an initialization has an effect. Then initialize the library again with initializeSqliteWasm. sqlite3_initialize alone, or any call that initializes the library itself, such as an open, makes the unix VFS the default again, from which the generator of [sqlite3\_randomness](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_randomness), when reset or unused since loading, seeds itself with the time and a constant pid instead of RandomBytes, and registers kvvfs again, which traps when :localStorage: is opened.                                                                            |
| [sqlite3\_sourceid](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_sourceid)                              | Returns the date, time and check-in hash of the SQLite source the library was built from, as a static string.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [sqlite3\_sql](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_sql)                                        | Returns the SQL text a statement was prepared from, which SQLite frees when the statement is finalized, or NULL for a statement from the legacy sqlite3_prepare, which this build does not export.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [sqlite3\_status](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_status)                                  | Reads a global SQLITE_STATUS_* counter into `*pCurrent` and its highwater mark into `*pHighwater`, resetting the mark when resetFlag is non-zero. A counter that tracks only one of the two leaves the other unwritten, and values beyond 32 bits are undefined.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [sqlite3\_status64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_status64)                              | Reads a global SQLITE_STATUS_* counter into the sqlite3_int64 at pCurrent and its highwater mark into the sqlite3_int64 at pHighwater, 8 bytes each, resetting the mark when resetFlag is non-zero. Some counters leave one of the two outputs unwritten.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [sqlite3\_step](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_step)                                      | Evaluates a statement one step, returning SQLITE_ROW, SQLITE_DONE or an error.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [sqlite3\_stmt\_busy](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_stmt_busy)                           | Returns non-zero when a statement has been stepped but has neither returned SQLITE_DONE nor been reset, and 0 for NULL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [sqlite3\_stmt\_explain](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_stmt_explain)                     | Makes a statement behave as if its SQL began with EXPLAIN (eMode 1), EXPLAIN QUERY PLAN (2) or neither (0), possibly re-preparing it. It fails while the statement is active, so reset it first.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [sqlite3\_stmt\_isexplain](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_stmt_isexplain)                 | Returns 1 for an EXPLAIN statement, 2 for EXPLAIN QUERY PLAN, and 0 for an ordinary statement or NULL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [sqlite3\_stmt\_readonly](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_stmt_readonly)                   | Returns non-zero when a statement cannot directly change the database file, though application-defined functions or virtual tables it calls still might. Transaction control, ATTACH and DETACH count as read-only; BEGIN IMMEDIATE, BEGIN EXCLUSIVE and any statement that might write do not.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [sqlite3\_stmt\_status](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_stmt_status)                       | Returns one of a statement's SQLITE_STMTSTATUS_* counters, and resets it to 0 afterwards when resetFlg is non-zero.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [sqlite3\_strglob](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_strglob)                                | Returns 0 when zStr matches the GLOB pattern zGlob, case-sensitively as SQL's GLOB operator does, and non-zero otherwise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [sqlite3\_stricmp](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_stricmp)                                | Compares two UTF-8 strings, folding only ASCII case as SQLite does for identifiers, and returns 0 when they are equal or a negative or positive number that orders them.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [sqlite3\_strlike](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_strlike)                                | Returns 0 when zStr matches the LIKE pattern zGlob with escape character cEsc, or none for 0, and non-zero otherwise. Like SQL's LIKE operator, it folds only ASCII case.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [sqlite3\_strnicmp](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_strnicmp)                              | Compares at most N bytes of two UTF-8 strings, folding only ASCII case as SQLite does for identifiers, and returns 0 when they are equal or a negative or positive number that orders them.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [sqlite3\_table\_column\_metadata](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_table_column_metadata)  | Writes a table column's declared type, collation sequence and NOT NULL, PRIMARY KEY and AUTOINCREMENT flags through the non-NULL output pointers, failing for a missing column or a view; a NULL column name only checks that the table exists. The returned strings stay valid only until the next SQLite call.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [sqlite3\_total\_changes](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_total_changes)                   | Returns the rows inserted, updated or deleted by the connection's completed statements since it opened, including those of triggers and foreign key actions. The result is undefined beyond the int range, which [sqlite3\_total\_changes64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_total_changes64) avoids.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [sqlite3\_total\_changes64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_total_changes64)               | Returns the number of rows changed by INSERT, UPDATE and DELETE statements on the connection since it opened, counting trigger and foreign key action changes but not REPLACE conflict deletions. Other connections do not change it, and other statements do not either, except a DROP TABLE that, with foreign keys on, first deletes the rows of a table that foreign keys reference.                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [sqlite3\_trace\_v2](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_trace_v2)                             | Registers the connection's one trace callback for the SQLITE_TRACE_* events in uMask, replacing any previous one; a NULL callback or a zero mask disables tracing. The callback receives the event code, pCtx and two event-specific pointers, and should return 0.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [sqlite3\_txn\_state](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_txn_state)                           | Returns a schema's transaction state, SQLITE_TXN_NONE, SQLITE_TXN_READ or SQLITE_TXN_WRITE, the highest across all schemas for NULL, or -1 for an unknown schema.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [sqlite3\_update\_hook](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_update_hook)                       | Registers the connection's callback for each row inserted, updated or deleted in a rowid table, replacing the previous one or removing it for NULL, and returns the previous pArg or NULL. The callback must not modify the connection and does not fire for WITHOUT ROWID tables, REPLACE conflict deletions or the truncate optimization.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [sqlite3\_uri\_boolean](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_uri_boolean)                       | Returns 1 when a filename's URI query parameter is yes, true or on in any case or starts with a non-zero number, 0 when it is no, false or off or starts with zero, and whether bDefault is non-zero otherwise, including for a NULL filename.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [sqlite3\_uri\_int64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_uri_int64)                           | Returns a URI query parameter of a filename SQLite created as a 64-bit integer, or iDefault when the filename is NULL or the parameter is missing or not a decimal or hexadecimal integer.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [sqlite3\_uri\_key](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_uri_key)                               | Returns the name of a filename's N-th URI query parameter, counting from 0, or NULL when N is out of range.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [sqlite3\_uri\_parameter](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_uri_parameter)                   | Returns the value of a URI query parameter of a filename, an empty string for a parameter without a value, or NULL when it is absent or the filename is NULL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [sqlite3\_user\_data](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_user_data)                           | Returns the user data pointer the running application-defined function was registered with.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [sqlite3\_value\_blob](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_blob)                         | Returns the address of a value's bytes, rendering a number as text, or NULL for a zero-length value or SQL NULL. Call it before [sqlite3\_value\_bytes](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_bytes); a later text conversion invalidates the address.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [sqlite3\_value\_bytes](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_bytes)                       | Returns the byte length of the blob or UTF-8 text the preceding [sqlite3\_value\_blob](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_blob) or [sqlite3\_value\_text](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_text) call returned, without the NUL terminator; 0 for NULL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [sqlite3\_value\_double](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_double)                     | Returns a value as a double, converting other types as CAST does, and 0.0 for NULL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [sqlite3\_value\_dup](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_dup)                           | Copies a value into a protected value the caller frees with [sqlite3\_value\_free](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_free). Returns NULL for NULL or when out of memory, and a pointer value copies as SQL NULL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [sqlite3\_value\_free](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_free)                         | Frees a value from [sqlite3\_value\_dup](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_dup); NULL is a no-op.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [sqlite3\_value\_frombind](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_frombind)                 | Returns non-zero when a value came from a bound parameter rather than a literal, a column or an expression.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [sqlite3\_value\_int](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_int)                           | Returns a value as a 32-bit integer, converting other types as CAST does and truncating a larger integer to its low 32 bits, and 0 for NULL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [sqlite3\_value\_int64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_int64)                       | Returns a value as a 64-bit integer, converting other storage classes as [sqlite3\_column\_int64](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_column_int64) does.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [sqlite3\_value\_nochange](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_nochange)                 | Within a virtual table's xUpdate, returns non-zero when the value's column is unchanged by the UPDATE because xColumn set no result; such a value otherwise looks like NULL. Anywhere else the result is meaningless.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [sqlite3\_value\_numeric\_type](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_numeric_type)        | Converts a value that looks like a number to INTEGER or FLOAT when no information is lost, and returns its resulting fundamental data type.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [sqlite3\_value\_pointer](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_pointer)                   | Returns the pointer [sqlite3\_bind\_pointer](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_bind_pointer) or [sqlite3\_result\_pointer](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_pointer) attached to a value under a type name equal to zPType by strcmp, and NULL otherwise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [sqlite3\_value\_subtype](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_subtype)                   | Returns the subtype of an application-defined function argument, as [sqlite3\_result\_subtype](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_result_subtype) set it, or 0. The reading function should be registered with SQLITE_SUBTYPE, or it might get 0 in corner cases.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [sqlite3\_value\_text](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_text)                         | Returns the address of a protected value as NUL-terminated UTF-8 text that can contain NUL characters, so read its length with [sqlite3\_value\_bytes](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_bytes) afterwards. Returns NULL for SQL NULL and when out of memory, and a later call that converts the value can invalidate the text.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [sqlite3\_value\_type](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_value_type)                         | Returns a value's initial fundamental data type. Read it before the other value functions, whose conversions can change it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [sqlite3\_vfs\_find](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_vfs_find)                             | Returns a registered VFS by name, or the default VFS for NULL.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [sqlite3\_vfs\_register](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_vfs_register)                     | Registers a VFS, optionally as the default. The struct and its name must outlive the registration.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [sqlite3\_vfs\_unregister](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_vfs_unregister)                 | Unregisters a VFS. When it was the default, SQLite makes an arbitrary other VFS the default.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [sqlite3\_vtab\_collation](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_vtab_collation)                 | Returns the collation name for text comparisons of an xBestIndex constraint, `BINARY` by default, or NULL for an index outside aConstraint. Only xBestIndex may call it, with the sqlite3_index_info it received.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [sqlite3\_vtab\_config](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_vtab_config)                       | Sets an option of the virtual table whose xCreate or xConnect method is running, the only place it may be called.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [sqlite3\_vtab\_distinct](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_vtab_distinct)                   | Returns how the planner needs a virtual table's rows for orderByConsumed: 0 in aOrderBy order, 1 with equal aOrderBy values adjacent, 2 adjacent with duplicates over colUsed omittable, 3 in order with such duplicates omittable. Only xBestIndex may call it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [sqlite3\_vtab\_in](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_vtab_in)                               | Returns non-zero when constraint iCons is an IN operator that can be processed all at once; bHandle 1 or 0 requests or declines that processing, and -1 only asks. Only xBestIndex may call it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [sqlite3\_vtab\_in\_first](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_vtab_in_first)                  | Writes the first right-hand value of an all-at-once IN constraint, given its xFilter argument, to ppOut and returns SQLITE_OK, or writes NULL and returns SQLITE_DONE when there is none. The value stays valid until the next call or the end of xFilter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [sqlite3\_vtab\_in\_next](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_vtab_in_next)                    | Writes the next right-hand value of an all-at-once IN constraint, given its xFilter argument, to ppOut and returns SQLITE_OK, or writes NULL and returns SQLITE_DONE after the last. The value stays valid until the next call or the end of xFilter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [sqlite3\_vtab\_nochange](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_vtab_nochange)                   | Returns non-zero inside xColumn when the column is fetched for an UPDATE that does not change it, so xColumn may leave the result unset. It is only a hint and may always return 0.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [sqlite3\_vtab\_on\_conflict](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_vtab_on_conflict)            | Returns the ON CONFLICT mode of the statement that called xUpdate for an INSERT or UPDATE: SQLITE_ROLLBACK, SQLITE_IGNORE, SQLITE_FAIL, SQLITE_ABORT or SQLITE_REPLACE. Only xUpdate may call it.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| [sqlite3\_vtab\_rhs\_value](https://evolu.dev/docs/api-reference/sqlite-wasm/c-api/functions/sqlite3_vtab_rhs_value)                | Writes the right-hand value of constraint iCons to ppVal and returns SQLITE_OK, or writes NULL and returns SQLITE_NOTFOUND when it is not known, which is usual unless it is a literal. Only xBestIndex may call it, and the value is freed when xBestIndex returns.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |