diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-04 11:33:49 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-19 11:38:24 +0200 |
commit | f101a400442692f349822ab1d9119bca5d2b7240 (patch) | |
tree | e046f3b727226810d08813cc4c7a55244937f275 /odb/statement.hxx | |
parent | be97326d67365e16175cc599e23348feaf80e0fe (diff) |
Initial support for prepared queries
Diffstat (limited to 'odb/statement.hxx')
-rw-r--r-- | odb/statement.hxx | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/odb/statement.hxx b/odb/statement.hxx index 7015e44..b7295ad 100644 --- a/odb/statement.hxx +++ b/odb/statement.hxx @@ -7,7 +7,7 @@ #include <odb/pre.hxx> -#include <odb/forward.hxx> +#include <odb/forward.hxx> // connection #include <odb/details/export.hxx> #include <odb/details/shared-ptr.hxx> @@ -17,18 +17,23 @@ namespace odb class LIBODB_EXPORT statement: public details::shared_base { public: + typedef odb::connection connection_type; + + virtual const char* + text () const = 0; + + virtual connection_type& + connection () = 0; + virtual ~statement () = 0; + protected: statement () {} private: statement (const statement&); statement& operator= (const statement&); - - public: - virtual const char* - text () const = 0; }; } |