summaryrefslogtreecommitdiff
path: root/libmysqlpp/connection.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2012-12-06 21:58:40 +0000
committerrandomdan <randomdan@localhost>2012-12-06 21:58:40 +0000
commit886e30e3943a9a2f2755f2ec79772ac333f94a8b (patch)
treed5ecaf3f1c25c9f717d8c4d0f113350fc8441272 /libmysqlpp/connection.h
parentFix error checking on mysql_ping causing db connection reuse failure; always ... (diff)
downloadlibdbpp-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.h4
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;
};
}