summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmysqlpp/my-connection.h')
-rw-r--r--libmysqlpp/my-connection.h45
1 files changed, 22 insertions, 23 deletions
diff --git a/libmysqlpp/my-connection.h b/libmysqlpp/my-connection.h
index 21b98b0..073acda 100644
--- a/libmysqlpp/my-connection.h
+++ b/libmysqlpp/my-connection.h
@@ -1,46 +1,45 @@
#ifndef MY_CONNECTION_H
#define MY_CONNECTION_H
-#include <connection.h>
#include "my-error.h"
-#include <mysql.h>
+#include <connection.h>
#include <memory>
+#include <mysql.h>
namespace MySQL {
class ConnectionError : public virtual Error, public virtual DB::ConnectionError {
- public:
- ConnectionError(MYSQL *);
+ public:
+ ConnectionError(MYSQL *);
};
class LoadContext;
class Connection : public DB::Connection {
- public:
- Connection(const std::string & info);
- ~Connection();
+ public:
+ Connection(const std::string & info);
+ ~Connection();
- void beginTxInt() override;
- void commitTxInt() override;
- void rollbackTxInt() override;
- void ping() const override;
- DB::BulkDeleteStyle bulkDeleteStyle() const override;
- DB::BulkUpdateStyle bulkUpdateStyle() const override;
+ void beginTxInt() override;
+ void commitTxInt() override;
+ void rollbackTxInt() override;
+ void ping() const override;
+ DB::BulkDeleteStyle bulkDeleteStyle() const override;
+ DB::BulkUpdateStyle bulkUpdateStyle() const override;
- DB::SelectCommandPtr select(const std::string & sql, const DB::CommandOptionsCPtr &) override;
- DB::ModifyCommandPtr modify(const std::string & sql, const DB::CommandOptionsCPtr &) override;
+ DB::SelectCommandPtr select(const std::string & sql, const DB::CommandOptionsCPtr &) override;
+ DB::ModifyCommandPtr modify(const std::string & sql, const DB::CommandOptionsCPtr &) override;
- void beginBulkUpload(const char *, const char *) override;
- void endBulkUpload(const char *) override;
- size_t bulkUploadData(const char *, size_t) const override;
+ void beginBulkUpload(const char *, const char *) override;
+ void endBulkUpload(const char *) override;
+ size_t bulkUploadData(const char *, size_t) const override;
- int64_t insertId() override;
+ int64_t insertId() override;
- mutable MYSQL conn;
+ mutable MYSQL conn;
- private:
- mutable std::unique_ptr<LoadContext> ctx;
+ private:
+ mutable std::unique_ptr<LoadContext> ctx;
};
}
#endif
-