From 0979184f66b49440758b7fc2b81172af7fe47ad8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 5 Sep 2011 10:20:47 +0200 Subject: Support for views; native part --- odb/mysql/result.hxx | 64 ++++++++-------------------------------------------- 1 file changed, 10 insertions(+), 54 deletions(-) (limited to 'odb/mysql/result.hxx') diff --git a/odb/mysql/result.hxx b/odb/mysql/result.hxx index ebc3e02..33df541 100644 --- a/odb/mysql/result.hxx +++ b/odb/mysql/result.hxx @@ -8,72 +8,28 @@ #include -#include // std::size_t - +#include #include #include #include -#include - -#include namespace odb { namespace mysql { - class query; - - template - class result_impl: public odb::result_impl - { - public: - typedef typename odb::result_impl::pointer_type pointer_type; - typedef typename odb::result_impl::pointer_traits pointer_traits; - - typedef typename odb::result_impl::object_type object_type; - typedef typename odb::result_impl::id_type id_type; - typedef typename odb::result_impl::object_traits object_traits; - - - virtual - ~result_impl (); - - result_impl (const query&, - details::shared_ptr statement, - object_statements& statements); - - virtual void - load (object_type&); - - virtual id_type - load_id (); - - virtual void - next (); - - virtual void - cache (); - - virtual std::size_t - size (); - - using odb::result_impl::current; - - private: - void - fetch (); - - private: - details::shared_ptr statement_; - object_statements& statements_; - std::size_t count_; - }; + template + class result_impl; } } -#include - #include #endif // ODB_MYSQL_RESULT_HXX + +// Include result specializations so that the user code only needs +// to include this header. +// + +#include +#include -- cgit v1.1