diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-10 11:16:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-10 11:16:42 +0200 |
commit | ec6b9f59d40b2c389496f8e6af6bce64944af998 (patch) | |
tree | b042d94161432c66336972471a82dcdca9cb3eea /odb/database.hxx | |
parent | 3d1ccd52f417c6e5e333e4f48130b043106215ad (diff) |
Add query support
Diffstat (limited to 'odb/database.hxx')
-rw-r--r-- | odb/database.hxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/odb/database.hxx b/odb/database.hxx index bfd6b0b..1b3a6d6 100644 --- a/odb/database.hxx +++ b/odb/database.hxx @@ -8,6 +8,8 @@ #include <odb/traits.hxx> #include <odb/forward.hxx> +#include <odb/query.hxx> +#include <odb/result.hxx> namespace odb { @@ -66,6 +68,20 @@ namespace odb void erase (typename object_traits<T>::id_type const& id); + // Object query API. + // + template <typename T> + shared_ptr<result_impl<T> > + query (); + + template <typename T> + shared_ptr<result_impl<T> > + query (const std::string&); + + template <typename T> + shared_ptr<result_impl<T> > + query (const odb::query<T>&); + // Transaction API. // public: |