Crate sqll_sys

Crate sqll_sys 

Source
Expand description

github crates.io docs.rs

Bindings to sqlite for sqll.

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 the bundled feature 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 the bundled feature 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 the NO_VCPKG or SQLITE3_NO_VCPKG environment variables.
  • Finding the library through pkg-config, this can be disabled by setting or by setting the SQLITE3_NO_PKG_CONFIG environment 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_TARGET or TARGET to specify the build target. You probably want to set this to something like wasm32-wasi-unknown.
  • SQLL_CLANG_PATH or CLANG_PATH to specify a custom path to a clang compiler installation.

Structs§

sqlite3
sqlite3_stmt

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

Type Aliases§

sqlite3_int64
sqlite_int64