diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-07-26 15:43:07 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-07-26 15:43:07 +0200 |
commit | 57ef48552e7d855151bac235a9f1af21255c8474 (patch) | |
tree | dcb41796db3a9c10fff946919dd1fd9994eaad33 /odb/mysql/connection.hxx | |
parent | 904c0628b231cb19a065df8e15b09c25676beeb9 (diff) |
Add base support for statements, insert_statement and cache
Diffstat (limited to 'odb/mysql/connection.hxx')
-rw-r--r-- | odb/mysql/connection.hxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/odb/mysql/connection.hxx b/odb/mysql/connection.hxx index e0f44a3..9718189 100644 --- a/odb/mysql/connection.hxx +++ b/odb/mysql/connection.hxx @@ -11,6 +11,8 @@ #include <odb/forward.hxx> #include <odb/shared-ptr.hxx> +#include <odb/mysql/statement.hxx> + namespace odb { namespace mysql @@ -18,6 +20,8 @@ namespace odb class connection: public shared_base { public: + typedef mysql::statement_cache statement_cache_type; + connection (database&); virtual @@ -30,6 +34,12 @@ namespace odb return handle_; } + statement_cache_type& + statement_cache () + { + return statement_cache_; + } + private: connection (const connection&); connection& operator= (const connection&); @@ -37,6 +47,7 @@ namespace odb private: MYSQL mysql_; MYSQL* handle_; + statement_cache_type statement_cache_; }; } } |