Database: use Void::Sqlite::Statement instead of raw sqlite3
Convert all ~30 query methods + the schema-migration framework from raw sqlite3_prepare_v2/bind/step/column/finalize/exec to Void::Sqlite's typed Statement API: prepare()->Result<Statement>, chained .bind(), step() returning Result<bool> (loops via .step().value_or(false)), column_int/ text/double + is_null, and voidDb.exec() for DDL. The configured busy timeout is now set with `PRAGMA busy_timeout`. Drop the borrowed sqlite3* handle, the <sqlite3.h> include, and all manual finalize/errMsg/free bookkeeping (RAII handles it). Requires the Void bind(const std::string&) overload. Runtime-verified: an in-memory round-trip (subscribers, playlist+tracks, RPC token generate/validate, remove) passes, including values with embedded quotes/apostrophes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
30884ad0b5
commit
0e090168e8
1 file changed
+277
-387
+277
-387
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user