|
|
virtual void | rollback ()=0 |
|
virtual void | setCommitCallback (const std::function< void(bool)> &commitCallback)=0 |
| void | closeAll () override |
| | Close all connections in the client. usually used by Drogon in the quit() method.
|
| template<typename FUNCTION1, typename FUNCTION2, typename... Arguments> |
| void | execSqlAsync (const std::string &sql, FUNCTION1 &&rCallback, FUNCTION2 &&exceptCallback, Arguments &&...args) noexcept |
| | Async and nonblocking method.
|
|
template<typename... Arguments> |
| std::future< Result > | execSqlAsyncFuture (const std::string &sql, Arguments &&...args) noexcept |
| | Async and nonblocking method.
|
|
template<typename... Arguments> |
| Result | execSqlSync (const std::string &sql, Arguments &&...args) noexcept(false) |
| internal::SqlBinder | operator<< (const std::string &sql) |
|
internal::SqlBinder | operator<< (std::string &&sql) |
|
template<int N> |
| internal::SqlBinder | operator<< (const char(&sql)[N]) |
|
internal::SqlBinder | operator<< (const std::string_view &sql) |
| virtual std::shared_ptr< Transaction > | newTransaction (const std::function< void(bool)> &commitCallback=std::function< void(bool)>(), TransactionType transType=TransactionType::Deferred) noexcept(false)=0 |
| | Create a transaction object.
|
|
std::shared_ptr< Transaction > | newTransaction (TransactionType transType) noexcept(false) |
| | Convenience overload: create a transaction with a specific locking mode.
|
| virtual void | newTransactionAsync (const std::function< void(const std::shared_ptr< Transaction > &)> &callback, TransactionType transType=TransactionType::Deferred)=0 |
| | Create a transaction object in asynchronous mode.
|
| void | newTransactionAsync (TransactionType transType, const std::function< void(const std::shared_ptr< Transaction > &)> &callback) |
| virtual bool | hasAvailableConnections () const noexcept=0 |
| | Check if there is a connection successfully established.
|
|
ClientType | type () const |
|
const std::string & | connectionInfo () const |
| virtual void | setTimeout (double timeout)=0 |
| | Set the Timeout value of execution of a SQL.
|