From f101a400442692f349822ab1d9119bca5d2b7240 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 4 Oct 2012 11:33:49 +0200 Subject: Initial support for prepared queries --- odb/statement.hxx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'odb/statement.hxx') 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 -#include +#include // connection #include #include @@ -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; }; } -- cgit v1.1