diff options
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_; }; } |