From 1be330551017742b923b324ea4534e592f43397e Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 20 Sep 2010 14:24:17 +0200 Subject: Cache result by default --- odb/database.hxx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'odb/database.hxx') diff --git a/odb/database.hxx b/odb/database.hxx index ca0cc4c..832c1a6 100644 --- a/odb/database.hxx +++ b/odb/database.hxx @@ -74,19 +74,23 @@ namespace odb void erase (const typename object_traits::id_type& id); - // Object query API. + // Query API. // template result - query (); + query (bool cache = true); template result - query (const std::string&); + query (const char*, bool cache = true); template result - query (const odb::query&); + query (const std::string&, bool cache = true); + + template + result + query (const odb::query&, bool cache = true); // Transaction API. // -- cgit v1.1