summaryrefslogtreecommitdiff
path: root/libodbcpp/odbc-connection.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-11-18 16:55:04 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2020-11-18 16:55:04 +0000
commit22e0839fd6912b888b7c3c790573aef1f5df3936 (patch)
tree5e88e4de68024326b2c59b163dfc1b74a5d4c7f3 /libodbcpp/odbc-connection.h
parentFixes for tidy (diff)
downloadlibdbpp-odbc-22e0839fd6912b888b7c3c790573aef1f5df3936.tar.bz2
libdbpp-odbc-22e0839fd6912b888b7c3c790573aef1f5df3936.tar.xz
libdbpp-odbc-22e0839fd6912b888b7c3c790573aef1f5df3936.zip
Clang format
Diffstat (limited to 'libodbcpp/odbc-connection.h')
-rw-r--r--libodbcpp/odbc-connection.h59
1 files changed, 29 insertions, 30 deletions
diff --git a/libodbcpp/odbc-connection.h b/libodbcpp/odbc-connection.h
index 3574c42..a7853e4 100644
--- a/libodbcpp/odbc-connection.h
+++ b/libodbcpp/odbc-connection.h
@@ -1,46 +1,45 @@
#ifndef ODBC_CONNECTION_H
#define ODBC_CONNECTION_H
-#include <connection.h>
-#include <error.h>
#include "odbc-dsn.h"
#include "odbc-error.h"
+#include <connection.h>
+#include <error.h>
#include <sql.h>
namespace ODBC {
class ConnectionError : public virtual Error, public virtual DB::ConnectionError {
- public:
- ConnectionError(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle);
+ public:
+ ConnectionError(RETCODE err, SQLSMALLINT handletype, SQLHANDLE handle);
};
class Connection : public DB::Connection {
- public:
- Connection(const DSN& d);
- Connection(const std::string & str);
- ~Connection();
- SQLHENV env;
- SQLHDBC conn;
-
- void beginTxInt() override;
- void commitTxInt() override;
- void rollbackTxInt() override;
- void ping() const override;
- std::string getAttrStr(SQLINTEGER) const;
- SQLINTEGER getAttrInt(SQLINTEGER) const;
- 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;
-
- private:
- DB::BulkDeleteStyle thinkDelStyle;
- DB::BulkUpdateStyle thinkUpdStyle;
-
- void connectPre();
- void connectPost();
+ public:
+ Connection(const DSN & d);
+ Connection(const std::string & str);
+ ~Connection();
+ SQLHENV env;
+ SQLHDBC conn;
+
+ void beginTxInt() override;
+ void commitTxInt() override;
+ void rollbackTxInt() override;
+ void ping() const override;
+ std::string getAttrStr(SQLINTEGER) const;
+ SQLINTEGER getAttrInt(SQLINTEGER) const;
+ 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;
+
+ private:
+ DB::BulkDeleteStyle thinkDelStyle;
+ DB::BulkUpdateStyle thinkUpdStyle;
+
+ void connectPre();
+ void connectPost();
};
}
#endif
-