From 1b1cb92a27592da6ab9300b2c5c8384f7588e2af Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 6 Sep 2011 16:54:06 +0200 Subject: Support for views; native part --- odb/sqlite/object-statements.hxx | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) (limited to 'odb/sqlite/object-statements.hxx') diff --git a/odb/sqlite/object-statements.hxx b/odb/sqlite/object-statements.hxx index c9c101d..4816d66 100644 --- a/odb/sqlite/object-statements.hxx +++ b/odb/sqlite/object-statements.hxx @@ -15,31 +15,23 @@ #include #include #include + #include #include #include #include +#include + #include namespace odb { namespace sqlite { - class connection; - - class LIBODB_SQLITE_EXPORT object_statements_base: - public details::shared_base + class LIBODB_SQLITE_EXPORT object_statements_base: public statements_base { public: - typedef sqlite::connection connection_type; - - connection_type& - connection () - { - return conn_; - } - // Locking. // void @@ -68,7 +60,7 @@ namespace odb protected: object_statements_base (connection_type& conn) - : conn_ (conn), locked_ (false) + : statements_base (conn), locked_ (false) { } @@ -89,7 +81,6 @@ namespace odb }; protected: - connection_type& conn_; bool locked_; }; @@ -150,10 +141,13 @@ namespace odb bool locked_; }; - // - // + + public: object_statements (connection_type&); + virtual + ~object_statements (); + // Delayed loading. // void -- cgit v1.1