Public 멤버 함수 |
| CDbMySQLPool () |
| ~CDbMySQLPool () |
bool | Create (int iPoolCount, const char *pszHost, const char *pszUserId, const char *pszPassWord, const char *pszDbName, int iPort, const char *pszCharacterSet=NULL) |
| DB 에 연결한다.
|
void | Destroy () |
| DB pool 에 포함된 DB 연결을 해제하고 리소스를 정리한다.
|
bool | Select (CDbMySQLConnection **ppclsDbConn, bool bStandByUntilAvailable=true) |
| DB pool 에서 DB 연결 객체를 가져온다.
|
void | Release (CDbMySQLConnection *pclsDbConn) |
| DB 연결 객체를 DB pool 에 반환한다.
|
bool | Execute (const char *pszSQL) |
| INSERT / UPDATE / DELETE SQL 문을 실행한다.
|
bool | Insert (const char *pszSQL, uint64_t *piId) |
| INSERT 문의 실행한다.
|
bool | Query (const char *pszSQL, void *pclsData, bool(*FetchRow)(void *, MYSQL_ROW &sttRow)) |
| SELECT 문을 실행한다.
|
bool | QueryOne (const char *pszSQL, int &iData) |
| SELECT count(*) 와 같은 1개의 row, column 인 SQL 문을 실행한다.
|
bool | QueryOne (const char *pszSQL, uint32_t &iData) |
| SELECT count(*) 와 같은 1개의 row, column 인 SQL 문을 실행한다.
|
bool | QueryOne (const char *pszSQL, uint64_t &iData) |
| SELECT count(*) 와 같은 1개의 row, column 인 SQL 문을 실행한다.
|
bool | QueryOne (const char *pszSQL, int64_t &iData) |
| SELECT count(*) 와 같은 1개의 row, column 인 SQL 문을 실행한다.
|
bool | QueryOne (const char *pszSQL, std::string &strData) |
| SELECT string 와 같은 1개의 row, column 인 SQL 문을 실행한다.
|
void | SetReadTimeout (int iSecond) |
| MySQL read timeout 시간을 설정한다.
|
void | SetWriteTimeout (int iSecond) |
| MySQL write timeout 시간을 설정한다.
|
MySQL DB connection pool 관리 클래스