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:
parent
afed9ccfad
commit
78fdd6f24e
3 changed files with 13 additions and 5 deletions
|
|
@ -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; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue