summaryrefslogtreecommitdiff
path: root/libmysqlpp/embeddedmy-connection.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-12-31 04:04:31 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-05-04 20:44:40 +0100
commitdb1e2f066393af3e58814417de5bbe7ea08a145d (patch)
tree9d01e48d8ef7d63fbcca6aced2461b3f1e234dfd /libmysqlpp/embeddedmy-connection.h
parentBeginnings of embbeded MySQL (diff)
downloadlibdbpp-mysql-db1e2f066393af3e58814417de5bbe7ea08a145d.tar.bz2
libdbpp-mysql-db1e2f066393af3e58814417de5bbe7ea08a145d.tar.xz
libdbpp-mysql-db1e2f066393af3e58814417de5bbe7ea08a145d.zip
Basics working, could do with a tidy up around mocking
Diffstat (limited to 'libmysqlpp/embeddedmy-connection.h')
-rw-r--r--libmysqlpp/embeddedmy-connection.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libmysqlpp/embeddedmy-connection.h b/libmysqlpp/embeddedmy-connection.h
index 3ceba2f..c94d86a 100644
--- a/libmysqlpp/embeddedmy-connection.h
+++ b/libmysqlpp/embeddedmy-connection.h
@@ -2,6 +2,7 @@
#define EMBEDDEDMY_CONNECTION_H
#include "my-connection.h"
+#include "embeddedmy-server.h"
#include "my-error.h"
#include <mysql.h>
@@ -10,8 +11,14 @@ namespace MySQL {
class Connection : public ::MySQL::Connection {
public:
Connection(const std::string &);
+ Connection(Server *, const std::string &);
+
+ void beginBulkUpload(const char *, const char *) override;
+ void endBulkUpload(const char *) override;
+ size_t bulkUploadData(const char *, size_t) const override;
private:
+ ServerPtr server;
};
}
}