From ec6b9f59d40b2c389496f8e6af6bce64944af998 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 10 Aug 2010 11:16:42 +0200 Subject: Add query support --- odb/database.hxx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'odb/database.hxx') 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 #include +#include +#include namespace odb { @@ -66,6 +68,20 @@ namespace odb void erase (typename object_traits::id_type const& id); + // Object query API. + // + template + shared_ptr > + query (); + + template + shared_ptr > + query (const std::string&); + + template + shared_ptr > + query (const odb::query&); + // Transaction API. // public: -- cgit v1.1