diff options
Diffstat (limited to 'odb/database.hxx')
-rw-r--r-- | odb/database.hxx | 12 |
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. // |