aboutsummaryrefslogtreecommitdiff
path: root/odb/database.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-09-20 14:24:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-09-20 14:24:17 +0200
commit1be330551017742b923b324ea4534e592f43397e (patch)
treed598265ae720af82e9804aa6b12ee975322d1538 /odb/database.hxx
parentcf503d65bf38512a89fd44e94346a3ffe56d4f40 (diff)
Cache result by default
Diffstat (limited to 'odb/database.hxx')
-rw-r--r--odb/database.hxx12
1 files changed, 8 insertions, 4 deletions
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<T>::id_type& id);
- // Object query API.
+ // Query API.
//
template <typename T>
result<T>
- query ();
+ query (bool cache = true);
template <typename T>
result<T>
- query (const std::string&);
+ query (const char*, bool cache = true);
template <typename T>
result<T>
- query (const odb::query<T>&);
+ query (const std::string&, bool cache = true);
+
+ template <typename T>
+ result<T>
+ query (const odb::query<T>&, bool cache = true);
// Transaction API.
//