SQLite build
PotluckDB ships SQLite 3.54.1, unmodified, built the same way on every platform.
Built in
Section titled “Built in”- Full-text search: FTS3, FTS4 and FTS5
- R*Tree and Geopoly
- JSON functions
- Math and percentile functions
- The session extension,
sqlite_dbpage,dbstatandsqlite_stmt - The
carray()table-valued function, withsqlite3_carray_bind() - The RBU extension (
sqlite3rbu_*). Its header,sqlite3rbu.h, is not in the archive: take it from SQLite’s source tree (ext/rbu/). - URI filenames, on by default
- Thread safety: serialized (SQLite’s default)
The library exports every function that sqlite.org’s own sqlite3.dll
exports for the same SQLite version, on every platform. The sqlite3_win32_*
functions exist only on Windows.
What PotluckDB adds
Section titled “What PotluckDB adds”| Name | Where | Returns |
|---|---|---|
potluckdb_version() |
SQL function | The PotluckDB version, for example 0.8.0-dev.1 |
potluckdb_version(void) |
C function, in potluckdb.h |
The same, as a C string |
Everything else behaves as in SQLite itself.
Same results everywhere
Section titled “Same results everywhere”Every platform computes bit-identical results. That matters once devices replay each other’s changes.
- Floating-point code is compiled without fused multiply-add.
- SQLite’s math functions (
sin,exp,pow,lnand the others) come from a copy of musl’s math code built into the library, not from the system’s math library, whose results differ in the last bit between Linux, macOS and Windows. - Every release is checked against thousands of frozen results, bit for
bit, on every platform
(
tests/vectors).
So a result can differ in the last digit from another SQLite on the same machine, but not between devices running the same PotluckDB version.