#include <mysql_connection_pool.hpp> #include <rapidjson/document.h> namespace xjj { const std::string MySQLConnectionPool::ConfigFileName = "./config.json"; std::shared_ptr<MySQLConnectionPool> MySQLConnectionPool::m_instance = nullptr; Mutex MySQLConnectionPool::m_instance_mutex; /*! * @...
Connection* createConnection( const string &userName, const string &password)=0; プール接続を作成します。userNameとpasswordの両方がNULLの場合、接続は外部認証されます。 Connection* createConnection( const UString &username, const UString &password)=0; グローバリゼーション対応のプール接続を...
staticvoltdb::ConnectionPool*pool(); private: /** * Thread local key for storing clients */ pthread_key_tm_borrowedClients; ClientMap m_clients; pthread_mutex_tm_lock; }; /** * Instantiate the global connection pool * Should be invoked once at startup ...
最大接続数に達している場合 setPoolSize() 接続プールについて、最大、最小および増分のプール接続数を設定します。 setTimeOut() 接続プール内の接続のタイムアウト間隔を設定します。 terminateConnection() 接続をクローズしてプールから削除します。get...
構文 コピー void terminateConnection( Connection *connection)=0; パラメータ説明 connection 終了するプール接続またはプロキシ接続を指定します。前のページ 次のページ このページ上 ConnectionPoolクラス createConnection() createProxyConnection() getBusyConnections() getIncrConnections() getMaxCon...