Skip to content

Latest commit

 

History

History
32 lines (29 loc) · 1.02 KB

README.md

File metadata and controls

32 lines (29 loc) · 1.02 KB

SQLite

This folder contains the unmodified SQLite amalgamation 3.45.1 @2024-01-30.

Bindgen

To regenerate the bindings after an update, call bindgen from the project's root directory:

bindgen --no-layout-tests \
  --default-macro-constant-type=signed \
  --use-core \
  \
  --no-recursive-allowlist \
  --allowlist-type "sqlite.*" \
  --allowlist-var "sqlite.*" \
  --allowlist-var "SQLITE.*" \
  --allowlist-function "sqlite.*" \
  --blocklist-function "sqlite3_vmprintf" \
  --blocklist-function "sqlite3_vsnprintf" \
  --blocklist-function "sqlite3_str_vappendf" \
  \
  --output ./src/ffi/bindgen.rs ./dist/sqlite3.h

Compile options

Currently, SQLite is compiled with the following options:

  • -DSQLITE_DQS=0
  • -DSQLITE_DEFAULT_MEMSTATUS=0
  • -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1
  • -DSQLITE_OMIT_DEPRECATED=1
  • -DSQLITE_OMIT_SHARED_CACHE=1
  • -DSQLITE_STRICT_SUBTYPE=1

See https://www.sqlite.org/compile.html and the build.rs for further information.