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

Class auto_mysql_stmt

client/hslongrun.cpp:64–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62};
63
64struct auto_mysql_stmt : private noncopyable {
65 auto_mysql_stmt(MYSQL *db) {
66 stmt = mysql_stmt_init(db);
67 }
68 ~auto_mysql_stmt() {
69 if (stmt) {
70 mysql_stmt_close(stmt);
71 }
72 }
73 operator MYSQL_STMT *() const { return stmt; }
74 private:
75 MYSQL_STMT *stmt;
76};
77
78double
79gettimeofday_double()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected