diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-11-21 13:11:43 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-11-21 13:11:43 +0200 |
commit | 4d51a8a248bcbe50849b6c7682aaca1aa9ebff98 (patch) | |
tree | 968edd20009ec455ed54c072820c9a338eaa1988 /odb/pgsql/query-dynamic.hxx | |
parent | 2eac10b0aae159bdfc249c67f11b32a65036352d (diff) |
Add dynamic multi-database query support
Diffstat (limited to 'odb/pgsql/query-dynamic.hxx')
-rw-r--r-- | odb/pgsql/query-dynamic.hxx | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/odb/pgsql/query-dynamic.hxx b/odb/pgsql/query-dynamic.hxx new file mode 100644 index 0000000..6cc9a43 --- /dev/null +++ b/odb/pgsql/query-dynamic.hxx @@ -0,0 +1,33 @@ +// file : odb/pgsql/query-dynamic.hxx +// copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef ODB_PGSQL_QUERY_DYNAMIC_HXX +#define ODB_PGSQL_QUERY_DYNAMIC_HXX + +#include <odb/pre.hxx> + +#include <odb/query.hxx> +#include <odb/query-dynamic.hxx> + +#include <odb/pgsql/query.hxx> + +namespace odb +{ + namespace pgsql + { + typedef details::shared_ptr<query_param> (*query_param_factory) ( + const void* val, bool by_ref); + + template <typename T, database_type_id ID> + details::shared_ptr<query_param> + query_param_factory_impl (const void*, bool); + } +} + +#include <odb/pgsql/query-dynamic.ixx> +#include <odb/pgsql/query-dynamic.txx> + +#include <odb/post.hxx> + +#endif // ODB_PGSQL_QUERY_DYNAMIC_HXX |