1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-12 13:36:02 +01:00

Open sqlite database according to new modes.

This commit is contained in:
Ben Radford 2023-05-16 14:13:03 +01:00
parent afed9ccfad
commit 78fdd6f24e
No known key found for this signature in database
GPG key ID: 9DF5D4640AB888D5
3 changed files with 13 additions and 5 deletions

View file

@ -36,7 +36,7 @@ struct SQLite
{
sqlite3 * db = 0;
SQLite() { }
SQLite(const Path & path, bool create = true);
SQLite(const Path & path, SQLiteOpenMode mode = SQLiteOpenMode::Normal);
SQLite(const SQLite & from) = delete;
SQLite& operator = (const SQLite & from) = delete;
SQLite& operator = (SQLite && from) { db = from.db; from.db = 0; return *this; }