diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-12 17:24:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-19 11:38:24 +0200 |
commit | 5b0430fdf4617b396e462872d438a663b174a3a8 (patch) | |
tree | e89e0cc5b1fdff4e3f49c9c7b7607d2b90108c31 /odb/statement.hxx | |
parent | 5c705a90d348a2a9428d5121a24eb47d0d73eb39 (diff) |
Completion of prepared query support
Diffstat (limited to 'odb/statement.hxx')
-rw-r--r-- | odb/statement.hxx | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/odb/statement.hxx b/odb/statement.hxx index b7295ad..3cd5598 100644 --- a/odb/statement.hxx +++ b/odb/statement.hxx @@ -16,6 +16,10 @@ namespace odb { class LIBODB_EXPORT statement: public details::shared_base { + private: + statement (const statement&); + statement& operator= (const statement&); + public: typedef odb::connection connection_type; @@ -28,12 +32,22 @@ namespace odb virtual ~statement () = 0; + // Statement caching status. + // + public: + bool + cached () const + { + return cached_; + } + + virtual void + cached (bool); + protected: - statement () {} + statement (): cached_ (false) {} - private: - statement (const statement&); - statement& operator= (const statement&); + bool cached_; }; } |