diff options
author | randomdan <randomdan@localhost> | 2011-02-11 14:55:07 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-02-11 14:55:07 +0000 |
commit | 7001e0ccd9f6f93f2e38572221c223f8adaf0eaf (patch) | |
tree | 284fd4a5717fea1b380602f26f80c744e2c279d7 /libodbcpp/connection.h | |
parent | Fix the build system to do dependencies properly (diff) | |
download | libdbpp-odbc-7001e0ccd9f6f93f2e38572221c223f8adaf0eaf.tar.bz2 libdbpp-odbc-7001e0ccd9f6f93f2e38572221c223f8adaf0eaf.tar.xz libdbpp-odbc-7001e0ccd9f6f93f2e38572221c223f8adaf0eaf.zip |
Support for table patching in different ways according to what the connector says
Introduce two proper methods of bulk update
Tested against PG 8.4, MySQL 5.1 with single and multiple column keys
Diffstat (limited to 'libodbcpp/connection.h')
-rw-r--r-- | libodbcpp/connection.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libodbcpp/connection.h b/libodbcpp/connection.h index d37b679..4fc52ca 100644 --- a/libodbcpp/connection.h +++ b/libodbcpp/connection.h @@ -25,11 +25,16 @@ namespace ODBC { void ping() const; std::string getAttrStr(SQLINTEGER) const; SQLINTEGER getAttrInt(SQLINTEGER) const; + DB::BulkDeleteStyle bulkDeleteStyle() const; + DB::BulkUpdateStyle bulkUpdateStyle() const; DB::SelectCommand * newSelectCommand(const std::string & sql) const; DB::ModifyCommand * newModifyCommand(const std::string & sql) const; private: + DB::BulkDeleteStyle thinkDelStyle; + DB::BulkUpdateStyle thinkUpdStyle; + void connectPre(); void connectPost(); mutable unsigned int txDepth; |