From ec6b9f59d40b2c389496f8e6af6bce64944af998 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 10 Aug 2010 11:16:42 +0200 Subject: Add query support --- odb/query.hxx | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 odb/query.hxx (limited to 'odb/query.hxx') diff --git a/odb/query.hxx b/odb/query.hxx new file mode 100644 index 0000000..d52e1cc --- /dev/null +++ b/odb/query.hxx @@ -0,0 +1,38 @@ +// file : odb/query.hxx +// author : Boris Kolpackov +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_QUERY_HXX +#define ODB_QUERY_HXX + +#include + +#include +#include + +namespace odb +{ + template + class query: public object_traits::query_type + { + public: + typedef typename object_traits::query_type base_type; + + query () + { + } + + query (const std::string& q) + : base_type (q) + { + } + + query (const base_type& q) + : base_type (q) + { + } + }; +} + +#endif // ODB_QUERY_HXX -- cgit v1.1