Expand description
Note that the metadata field of this crate specified which version of sqlite
is provided if the bundled feature is enabled, like +sqlite-3.51.2.
§Features
bundled- Use the bundled sqlite3 source code. If this feature is not enabled see the building with system dependencies section below.threadsafe- Build sqlite3 with threadsafe support. If this is not set then thebundledfeature has to be set since we otherwise cannot control how sqlite is built.strict- Build sqlite3 with strict compiler flags enabled. This is only used when thebundledfeature is enabled.
§Building
When linking to a system sqlite library there is a minimum required version.
This is specified in the sqlite3-version file and is checked at build
time.
If the bundled feature is not set, this will attempt to find the native
sqlite3 bindings using the following methods:
- Calling
vcpkg, this can be disabled by setting theNO_VCPKGorSQLITE3_NO_VCPKGenvironment variables. - Finding the library through
pkg-config, this can be disabled by setting or by setting theSQLITE3_NO_PKG_CONFIGenvironment variables.
§Building under WASM
If the target is is wasm, you can set the SDK_PATH_ENV to specify an SDK
path to a particular compiler to use when building the wasm bindings. This
is only supported when the bundled feature is enabled.
The following environment variables can be set to modify this behavior:
SQLL_TARGETorTARGETto specify the build target. You probably want to set this to something likewasm32-wasi-unknown.SQLL_CLANG_PATHorCLANG_PATHto specify a custom path to a clang compiler installation.
Structs§
Constants§
- SQLITE_
BLOB - SQLITE_
DONE - SQLITE_
FLOAT - SQLITE_
INTEGER - SQLITE_
NULL - SQLITE_
OK - SQLITE_
OPEN_ CREATE - SQLITE_
OPEN_ EXRESCODE - SQLITE_
OPEN_ FULLMUTEX - SQLITE_
OPEN_ MEMORY - SQLITE_
OPEN_ NOFOLLOW - SQLITE_
OPEN_ NOMUTEX - SQLITE_
OPEN_ PRIVATECACHE - SQLITE_
OPEN_ READONLY - SQLITE_
OPEN_ READWRITE - SQLITE_
OPEN_ SHAREDCACHE - SQLITE_
OPEN_ URI - SQLITE_
PREPARE_ NORMALIZE - SQLITE_
PREPARE_ NO_ VTAB - SQLITE_
PREPARE_ PERSISTENT - SQLITE_
ROW - SQLITE_
TEXT
Functions§
- sqlite3_
bind_ ⚠blob - sqlite3_
bind_ ⚠double - sqlite3_
bind_ ⚠int64 - sqlite3_
bind_ ⚠null - sqlite3_
bind_ ⚠parameter_ index - sqlite3_
bind_ ⚠parameter_ name - sqlite3_
bind_ ⚠text - sqlite3_
busy_ ⚠handler - sqlite3_
busy_ ⚠timeout - sqlite3_
changes ⚠ - sqlite3_
clear_ ⚠bindings - sqlite3_
close_ ⚠v2 - sqlite3_
column_ ⚠blob - sqlite3_
column_ ⚠bytes - sqlite3_
column_ ⚠count - sqlite3_
column_ ⚠double - sqlite3_
column_ ⚠int64 - sqlite3_
column_ ⚠name - sqlite3_
column_ ⚠text - sqlite3_
column_ ⚠type - sqlite3_
db_ ⚠handle - sqlite3_
db_ ⚠readonly - sqlite3_
errmsg ⚠ - sqlite3_
errstr ⚠ - sqlite3_
extended_ ⚠result_ codes - sqlite3_
finalize ⚠ - sqlite3_
free ⚠ - sqlite3_
last_ ⚠insert_ rowid - sqlite3_
libversion ⚠ - sqlite3_
libversion_ ⚠number - sqlite3_
malloc ⚠ - sqlite3_
open_ ⚠v2 - sqlite3_
prepare_ ⚠v3 - sqlite3_
reset ⚠ - sqlite3_
step ⚠ - sqlite3_
threadsafe ⚠ - sqlite3_
total_ ⚠changes