diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-10 11:17:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-10 11:17:52 +0200 |
commit | 0a589394a09ce5b3f16d902d657710a2886cc2fc (patch) | |
tree | 08f5bfa47a0d07b0dc20352706342e17f277759f /odb/mysql/connection.hxx | |
parent | c67f076c75a36877ce142dc43a1ed2292ab8117a (diff) |
Add query support
Diffstat (limited to 'odb/mysql/connection.hxx')
-rw-r--r-- | odb/mysql/connection.hxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/odb/mysql/connection.hxx b/odb/mysql/connection.hxx index ea94cd0..513abc5 100644 --- a/odb/mysql/connection.hxx +++ b/odb/mysql/connection.hxx @@ -41,6 +41,19 @@ namespace odb return statement_cache_; } + public: + statement* + active () + { + return active_; + } + + void + active (statement* s) + { + active_ = s; + } + private: connection (const connection&); connection& operator= (const connection&); @@ -48,6 +61,7 @@ namespace odb private: MYSQL mysql_; MYSQL* handle_; + statement* active_; statement_cache_type statement_cache_; }; } |