22 public std::enable_shared_from_this<SafeConnection>
33 static std::shared_ptr<SafeConnection> Open(
36 Error* openError =
nullptr);
38 static std::shared_ptr<SafeConnection> Reopen(
41 Error* openError =
nullptr);
43 static std::shared_ptr<SafeConnection> Reopen(
46 Error* openError =
nullptr);
48 static std::shared_ptr<SafeConnection> Reopen(
51 Error* openError =
nullptr);
53 struct SQLITE_HELPERS_API
Lock final
55 explicit Lock(std::shared_ptr<SafeConnection> connection);
69 explicit operator
bool() const noexcept;
70 bool IsValid() const noexcept;
77 Lock Acquire() noexcept;
A class representing a connection to a SQLite database.
A class representing an error in SQLite.
A class representing a safe connection to SQLite.
std::recursive_mutex MutexType
OpenMode
The mode in which the database should be opened.
ThreadMode
The mode in which the database should be accessed.
Lock & operator=(Lock &&)=default
Lock & operator=(const Lock &)=delete
Lock(const Lock &)=delete