MCPcopy Create free account
hub / github.com/Tencent/phxsql / PhxSQLClientBase

Method PhxSQLClientBase

phxsqlclient/phxsqlclientbase.cpp:110–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110PhxSQLClientBase::PhxSQLClientBase(PhxSQLClientConfig * poConfig, PhxSQLClientDisasterStrategy * poDisasterStrategy,
111 const char *pcUser, const char *pcPasswd, const char *pcDB, uint32_t iClientFlag) {
112 InitLibrary();
113 m_poMySQLProp = new MySQLProp_t();
114 InitProperty(m_poMySQLProp);
115
116 m_poDisasterStrategy = poDisasterStrategy;
117 m_poConfig = poConfig;
118
119 strncpy(m_poMySQLProp->pcUser, pcUser, sizeof(m_poMySQLProp->pcUser));
120 strncpy(m_poMySQLProp->pcPass, pcPasswd, sizeof(m_poMySQLProp->pcPass));
121 strncpy(m_poMySQLProp->pcDB, pcDB, sizeof(m_poMySQLProp->pcDB));
122 m_poMySQLProp->iClientFlag = iClientFlag;
123}
124
125PhxSQLClientBase::~PhxSQLClientBase() {
126 CloseConnection();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected