Own the database connection via Void::Sqlite
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>
This commit is contained in:
1 parent
914eb0a232
commit
9ff27483ab
2 files changed
+26
-20
No files matched your search
@@ -106,6 +106,7 @@ target_link_libraries(EchoionCore
|
||||
Void::Time
|
||||
Void::Math
|
||||
Void::Net
|
||||
Void::Sqlite
|
||||
PRIVATE
|
||||
Threads::Threads
|
||||
qjs
|
||||
|
||||
Reference in new issue
Block a user