47#include <StormByte/safe/vector.hxx>
134 bool DoConnect() noexcept override;
136 void DoDisconnect() noexcept override;
138 void DoPreDisconnect() noexcept override;
141 std::string_view name,
std::string_view query) noexcept override;
Abstract backend.
Definition database.hxx:73
Database(const StormByte::Safe::Shared< Logger::Log > &logger)
Construct with an optional logger.
Microsoft SQL Server backend.
Definition mssql.hxx:84
friend struct CallbackHandlers
Definition mssql.hxx:124
MSSQL & operator=(const MSSQL &)=delete
Deleted copy assignment.
friend class PreparedSTMT
Definition mssql.hxx:123
MSSQL & operator=(MSSQL &&other) noexcept
Move assignment.
bool DoSilentQuery(std::string_view query) noexcept override
Execute an internal no-result query.
~MSSQL() noexcept override
Disconnect and release the DB-Library process.
MSSQL(MSSQL &&other) noexcept
Move constructor.
ExpectedRows Query(std::string_view query) noexcept override
Execute a SQL batch and collect its first result set.
bool SilentQuery(std::string_view query) noexcept override
Execute a SQL batch without returning rows.
MSSQL(const MSSQL &)=delete
Deleted copy constructor.
Type-erased SQL value (NULL, integers, double, text, blob, bool).
Definition value.hxx:71
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.
Source-private adapter for native DB-Library callbacks.
Private opaque holder for the native MariaDB connection.
#define STORMBYTE_DATABASE_PUBLIC
Definition visibility.h:54