Public 멤버 함수 |
| | CDbMySQLConnection () |
| | ~CDbMySQLConnection () |
| bool | Connect (const char *pszHost, const char *pszUserId, const char *pszPassWord, const char *pszDbName, int iPort, const char *pszCharacterSet=NULL) |
| | DB 에 연결한다.
|
| void | Close () |
| | DB 연결 종료한다.
|
| bool | Execute (const char *pszSQL) |
| | INSERT / UPDATE / DELETE SQL 문을 실행한다.
|
| bool | Execute (const char *pszSQL, int iArgCount,...) |
| | prepare statement 로 SQL INSERT, UPDATE, DELETE 명령을 수행한다.
|
| bool | Execute (const char *pszSQL, STRING_LIST &clsArgList) |
| | prepare statement 로 SQL INSERT, UPDATE, DELETE 명령을 수행한다.
|
| 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, uint8_t &cData) |
| | 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) |
| | 한 개의 row, column 을 가져오는 SQL 문을 실행한다.
|
| bool | QueryOne (const char *pszSQL, const char *pszArg, std::string &strData, int iDataSize) |
| | SELECT password(?) 와 같은 SQL 문을 실행한 결과를 가져온다.
|
| bool | Prepare (const char *pszSQL) |
| | prepareStmt 를 시작한다.
|
| bool | Bind (int iIndex, const char *pszVal) |
| | prepareStmt 로 bind 할 변수를 설정한다.
|
| bool | PrepareExecute (uint64_t *piId=NULL) |
| | prepareStmt 를 실행한다.
|
| bool | PrepareClose () |
| | prepareStmt 를 종료한다.
|
| uint64_t | GetAffectedRow () |
| | It returns the number of rows changed, deleted, or inserted by the last statement if it was an UPDATE, DELETE, or INSERT.
|
| uint32_t | GetError () |
| | mysql_errno 를 리턴한다.
|
| bool | IsExistTable (const char *pszTableName) |
| | 테이블이 존재하는지 검사한다.
|
| void | SetReadTimeout (int iSecond) |
| | MySQL read timeout 시간을 설정한다.
|
| void | SetWriteTimeout (int iSecond) |
| | MySQL write timeout 시간을 설정한다.
|
| void | SetLogLevel (EnumLogLevel eLogLevel) |
| | SQL 로그 레벨을 설정한다.
|
MySQL DB 연결 관리 및 쿼리 실행 클래스