154 bool DoConnect() noexcept override;
159 void DoPreDisconnect() noexcept override;
164 void DoDisconnect() noexcept override;
Database(const StormByte::Safe::Shared< Logger::Log > &logger)
Construct with an optional logger.
MariaDB / MySQL backend.
Definition mariadb.hxx:78
ExpectedRows Query(std::string_view query) noexcept override
Execute a query that returns rows.
~MariaDB() noexcept override
Destructor.
bool SilentQuery(std::string_view query) noexcept override
Execute a query that does not return rows.
bool DoSilentQuery(std::string_view query) noexcept override
Internal silent query.
MariaDB & operator=(const MariaDB &db)=delete
Copy assignment (deleted).
MariaDB & operator=(MariaDB &&db) noexcept
Move assignment that transfers the database connection.
MariaDB(const MariaDB &db)=delete
Copy constructor (deleted).
MariaDB(MariaDB &&db) noexcept
Move constructor that transfers the database connection.
MariaDB prepared statement.
Definition prepared_stmt.hxx:78
STORMBYTE_DECLARE_MAYBE_SAFE(StormByte::Logger::Exception)
Database module of the StormByte suite.
Expected< Rows, QueryException > ExpectedRows
Query result: Rows or QueryException.
Definition typedefs.hxx:81
IsolationLevel
Isolation for BeginTransaction().
Definition typedefs.hxx:98
Root namespace of the StormByte C++ suite.
Private opaque holder for the native MariaDB connection.
#define STORMBYTE_DATABASE_PUBLIC
Definition visibility.h:54