diff options
author | randomdan <randomdan@localhost> | 2012-12-06 21:58:40 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2012-12-06 21:58:40 +0000 |
commit | 886e30e3943a9a2f2755f2ec79772ac333f94a8b (patch) | |
tree | d5ecaf3f1c25c9f717d8c4d0f113350fc8441272 /libmysqlpp/connection.h | |
parent | Fix error checking on mysql_ping causing db connection reuse failure; always ... (diff) | |
download | libdbpp-mysql-886e30e3943a9a2f2755f2ec79772ac333f94a8b.tar.bz2 libdbpp-mysql-886e30e3943a9a2f2755f2ec79772ac333f94a8b.tar.xz libdbpp-mysql-886e30e3943a9a2f2755f2ec79772ac333f94a8b.zip |
Implement a basic MySQL bulk loader
Diffstat (limited to 'libmysqlpp/connection.h')
-rw-r--r-- | libmysqlpp/connection.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libmysqlpp/connection.h b/libmysqlpp/connection.h index 0524009..5b6fa79 100644 --- a/libmysqlpp/connection.h +++ b/libmysqlpp/connection.h @@ -4,8 +4,10 @@ #include "../libdbpp/connection.h" #include "error.h" #include <mysql.h> +#include <boost/shared_ptr.hpp> namespace MySQL { + class LoadContext; class Connection : public DB::Connection { public: Connection(const std::string & info); @@ -34,6 +36,8 @@ namespace MySQL { mutable unsigned int txDepth; mutable bool rolledback; + + mutable boost::shared_ptr<LoadContext> ctx; }; } |