How srombauts/sqlitecpp works
SQLiteCpp is a C++17 RAII wrapper around SQLite’s native C API. An application opens a connection, prepares and binds SQL, steps through results, and reads typed columns; transaction and savepoint objects provide scoped atomic operations, while Backup copies between connections. The graph also preserves batch execution and variadic binding as library capabilities. Source excerpts show several native API calls and Database’s construction of Statement and Backup; unsampled module interactions are omitted rather than inferred.
Main entry points: Database.cpp Database connection · Statement.cpp Prepared statement · Backup.cpp Online backup · Column.cpp Result columns
Components 11
Connections and queries
- Database connection
src/Database.cpp - Prepared statement
src/Statement.cpp - Error handling
src/Exception.cpp
Results and binding
- Result columns
src/Column.cpp - Batch execution
include/SQLiteCpp/ExecuteMany.h - Variadic binding
include/SQLiteCpp/VariadicBind.h
Atomic operations
- Transactions
src/Transaction.cpp - Savepoints
src/Savepoint.cpp - Online backup
src/Backup.cpp
Other components
- C++ application
- SQLite engine
Connections 9
- C++ application → Database connection: opens connection
README.md - Database connection → Prepared statement: constructs
src/Database.cpp - Database connection → Online backup: runs backup
src/Database.cpp - Transactions → Database connection: executes SQL
src/Transaction.cpp - Database connection → SQLite engine: opens connection
src/Database.cpp - Prepared statement → SQLite engine: binds and steps
src/Statement.cpp - Result columns → SQLite engine: reads values
src/Column.cpp - Online backup → SQLite engine: copies pages
src/Backup.cpp - Database connection → Error handling: throws errors
src/Database.cpp