diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-20 14:24:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-09-20 14:24:17 +0200 |
commit | 1be330551017742b923b324ea4534e592f43397e (patch) | |
tree | d598265ae720af82e9804aa6b12ee975322d1538 /odb/database.ixx | |
parent | cf503d65bf38512a89fd44e94346a3ffe56d4f40 (diff) |
Cache result by default
Diffstat (limited to 'odb/database.ixx')
-rw-r--r-- | odb/database.ixx | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/odb/database.ixx b/odb/database.ixx index fb26d64..8085210 100644 --- a/odb/database.ixx +++ b/odb/database.ixx @@ -19,15 +19,22 @@ namespace odb template <typename T> inline result<T> database:: - query () + query (bool cache) { - return query (odb::query<T> ()); + return query (odb::query<T> (), cache); } template <typename T> inline result<T> database:: - query (const std::string& q) + query (const char* q, bool cache) { - return query (odb::query<T> (q)); + return query (odb::query<T> (q), cache); + } + + template <typename T> + inline result<T> database:: + query (const std::string& q, bool cache) + { + return query (odb::query<T> (q), cache); } } |