|
Fray Engine
|
Own an SQLite connection and close it on destruction. More...
Public Member Functions | |
| bool | close () |
| Closes the connection after any in-flight use completes. | |
| ~Database () | |
| Close the owned SQLite connection if present. | |
Public Attributes | |
| sqlite3 * | db = nullptr |
| Owned SQLite handle, or null before opening. | |
| std::filesystem::path | path |
| Path used when this connection was opened. | |
| std::mutex | mutex |
| Serializes use and explicit closure of this connection. | |
Own an SQLite connection and close it on destruction.
Definition at line 137 of file log_store.hpp.
|
inline |
Close the owned SQLite connection if present.
Definition at line 168 of file log_store.hpp.
|
inline |
Closes the connection after any in-flight use completes.
Definition at line 151 of file log_store.hpp.
| sqlite3* fray::logs::LogStore::Database::db = nullptr |
Owned SQLite handle, or null before opening.
Definition at line 142 of file log_store.hpp.
| std::mutex fray::logs::LogStore::Database::mutex |
Serializes use and explicit closure of this connection.
Definition at line 146 of file log_store.hpp.
| std::filesystem::path fray::logs::LogStore::Database::path |
Path used when this connection was opened.
Definition at line 144 of file log_store.hpp.