Provides query interface for Mariadb and manages connection pool.
#include <mariadb.h>
|
typedef function< void(size_t, size_t, const WallClock::Value &)> | ConnectionFailureHandler |
|
typedef function< void(const Ptr< ResultSets > &, const Error &)> | QueryExecuteHandler |
|
|
const string & | address () const |
|
size_t | connection_count () const |
|
const string & | database () const |
|
void | ExecuteQuery (const string &query, const QueryExecuteHandler &handler) |
|
Ptr< ResultSets > | ExecuteQuerySync (const string &query, Error *error=NULL) |
|
void | Finalize () |
|
Ptr< MariadbConnection > | GetExclusiveConnection () |
|
const string & | id () const |
|
size_t | idle_connection_count () const |
|
void | Initialize () |
|
size_t | query_queue_size () const |
|
|
static Ptr< Mariadb > | Create (const string &address, const string &id, const string &password, const string &database, size_t connection_count, const string &connection_charset=kDefaultConnectionCharset, bool auto_retry_on_deadlock=kDefaultAutoRetryOnDeadlock, unsigned long client_flags=kDefaultClientFlags, int64_t slow_query_logging_time_in_ms=kDefaultSlowQueryLoggingTime, const ConnectionFailureHandler &connection_failure_handler=kDefaultConnectionFailureHandler) |
|
|
static const bool | kDefaultAutoRetryOnDeadlock |
|
static const unsigned long | kDefaultClientFlags |
|
static const string | kDefaultConnectionCharset |
|
static const ConnectionFailureHandler | kDefaultConnectionFailureHandler |
|
static const int64_t | kDefaultSlowQueryLoggingTime |
|