From 7ce07d1c371e32e474897e8b03da7e330aaefb57 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 6 Sep 2011 16:56:07 +0200 Subject: Support for views; native part --- odb/pgsql/object-statements.hxx | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'odb/pgsql/object-statements.hxx') diff --git a/odb/pgsql/object-statements.hxx b/odb/pgsql/object-statements.hxx index ca5aecd..dc3c0db 100644 --- a/odb/pgsql/object-statements.hxx +++ b/odb/pgsql/object-statements.hxx @@ -21,6 +21,7 @@ #include #include #include +#include #include @@ -28,20 +29,9 @@ namespace odb { namespace pgsql { - class connection; - - class LIBODB_PGSQL_EXPORT object_statements_base: - public details::shared_base + class LIBODB_PGSQL_EXPORT object_statements_base: public statements_base { public: - typedef pgsql::connection connection_type; - - connection_type& - connection () - { - return conn_; - } - // Locking. // void @@ -70,7 +60,7 @@ namespace odb protected: object_statements_base (connection_type& conn) - : conn_ (conn), locked_ (false) + : statements_base (conn), locked_ (false) { } @@ -91,7 +81,6 @@ namespace odb }; protected: - connection_type& conn_; bool locked_; }; @@ -152,10 +141,12 @@ namespace odb bool locked_; }; - // - // + public: object_statements (connection_type&); + virtual + ~object_statements (); + // Delayed loading. // void -- cgit v1.1