aboutsummaryrefslogtreecommitdiff
path: root/odb/database.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/database.hxx')
-rw-r--r--odb/database.hxx16
1 files changed, 16 insertions, 0 deletions
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 <odb/traits.hxx>
#include <odb/forward.hxx>
+#include <odb/query.hxx>
+#include <odb/result.hxx>
namespace odb
{
@@ -66,6 +68,20 @@ namespace odb
void
erase (typename object_traits<T>::id_type const& id);
+ // Object query API.
+ //
+ template <typename T>
+ shared_ptr<result_impl<T> >
+ query ();
+
+ template <typename T>
+ shared_ptr<result_impl<T> >
+ query (const std::string&);
+
+ template <typename T>
+ shared_ptr<result_impl<T> >
+ query (const odb::query<T>&);
+
// Transaction API.
//
public: