MCPcopy Create free account
hub / github.com/DeNA/HandlerSocket-Plugin-for-MySQL / auto_mysql_res

Class auto_mysql_res

client/hstest.cpp:62–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60};
61
62struct auto_mysql_res : private noncopyable {
63 auto_mysql_res(MYSQL *db) {
64 res = mysql_store_result(db);
65 }
66 ~auto_mysql_res() {
67 if (res) {
68 mysql_free_result(res);
69 }
70 }
71 operator MYSQL_RES *() const { return res; }
72 private:
73 MYSQL_RES *res;
74};
75
76struct auto_mysql_stmt : private noncopyable {
77 auto_mysql_stmt(MYSQL *db) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected