| 60 | }; |
| 61 | |
| 62 | struct 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 | |
| 76 | struct auto_mysql_stmt : private noncopyable { |
| 77 | auto_mysql_stmt(MYSQL *db) { |
nothing calls this directly
no outgoing calls
no test coverage detected