sqlitecpp-sqlite-flags

star 2.7k

SQLiteCpp and sqlite3 feature flags for CMake and Meson builds.

SRombauts By SRombauts schedule Updated 5/19/2026

name: sqlitecpp-sqlite-flags description: SQLiteCpp and sqlite3 feature flags for CMake and Meson builds.

SQLiteCpp and SQLite Flags

Core SQLiteCpp options (CMake)

  • SQLITECPP_INTERNAL_SQLITE (ON): build bundled sqlite3.
  • SQLITECPP_USE_ASAN (OFF): address sanitizer.
  • SQLITECPP_USE_GCOV (OFF): coverage.
  • SQLITECPP_DISABLE_STD_FILESYSTEM (OFF): disable std::filesystem.
  • SQLITECPP_DISABLE_EXPANDED_SQL (OFF): disable sqlite3_expanded_sql.

Core SQLiteCpp options (Meson)

  • SQLITECPP_DISABLE_STD_FILESYSTEM (OFF): disable std::filesystem.
  • SQLITECPP_DISABLE_SQLITE3_EXPANDED_SQL (OFF): disable sqlite3_expanded_sql.

SQLite feature flags (CMake and Meson)

  • SQLITE_ENABLE_COLUMN_METADATA: enable getColumnOriginName() (CMake default ON, Meson default false).
  • SQLITE_ENABLE_ASSERT_HANDLER (OFF): enable custom assert handler.
  • SQLITE_HAS_CODEC (OFF): enable codec API (SQLCipher).
  • SQLITE_USE_LEGACY_STRUCT (OFF): legacy sqlite3_value.
  • SQLITE_OMIT_LOAD_EXTENSION (OFF): disable load_extension.

Internal sqlite3 feature flags (CMake)

  • SQLITE_ENABLE_RTREE (OFF): enable RTree (internal sqlite3).
  • SQLITE_ENABLE_DBSTAT_VTAB (OFF): enable DBSTAT (internal sqlite3).

DLL build flags (Windows)

  • BUILD_SHARED_LIBS=ON adds SQLITECPP_COMPILE_DLL and SQLITECPP_DLL_EXPORT.

Usage notes

  • Column metadata requires sqlite3 built with SQLITE_ENABLE_COLUMN_METADATA.
  • External sqlite3 may not support load_extension on macOS.
Install via CLI
npx skills add https://github.com/SRombauts/SQLiteCpp --skill sqlitecpp-sqlite-flags
Repository Details
star Stars 2,744
call_split Forks 569
navigation Branch main
article Path SKILL.md
More from Creator