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>
Delete the echoion Logger adapter (Logger.{hpp,cpp}) and the
ILogger/LoggerRegistry indirection. Core::installLogging() builds the
console + split-file Void::Logging::MultiLogger and installs it as the
process-wide Void::Log sink via Void::Log::make_sink (logSink_ owns it for
the process lifetime). The ~450 ECHOION_LOG_* call sites across EchoionCore
are rewritten to Void::Log::<level>("<Subsystem>", "{}", <expr>) with
per-file module tags (warning->warn, critical->fatal); the pre-formatted
message is passed as the single "{}" argument. Build green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Mechanically convert std::unexpected(Api::Error(ErrorCode::X, msg[, src]))
to Api::fail(ErrorCode::X, msg[, src]) across Core. Pure syntax; forwards of
existing errors (std::unexpected(x.error())) are unchanged.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
DatabaseImpl now holds a Void::Sqlite::Database (RAII open/close, WAL +
busy-timeout + foreign_keys); the existing raw-sqlite3 query methods borrow
its handle() unchanged. Removes the manual sqlite3_open/close + journal-mode
boilerplate.
Deliberately keeps echoion's schema_migrations migration framework rather
than switching to Void's PRAGMA user_version Migrator: existing databases
record versions in schema_migrations with user_version=0, and migrations
2/3 DROP tables — re-running them would destroy live data. Verified with an
integration test (data survives close+reopen; migrate() stays idempotent).
Link Void::Sqlite.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>