diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-10-25 07:20:24 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-10-26 15:43:00 +0200 |
commit | 4a23d7554de82ba24d10bfc6d165157d113fa447 (patch) | |
tree | a96e57cc92745466fee5a9678d8e6c9e33652580 /odb/oracle/query.ixx | |
parent | 9ce6c9851b48e575f712b6c30520211315811253 (diff) |
Add query and result implementations
Diffstat (limited to 'odb/oracle/query.ixx')
-rw-r--r-- | odb/oracle/query.ixx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/odb/oracle/query.ixx b/odb/oracle/query.ixx new file mode 100644 index 0000000..5e61f4e --- /dev/null +++ b/odb/oracle/query.ixx @@ -0,0 +1,28 @@ +// file : odb/oracle/query.ixx +// author : Constantin Michael <constantin@codesynthesis.com> +// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC +// license : ODB NCUEL; see accompanying LICENSE file + +namespace odb +{ + namespace oracle + { + template <typename T, database_type_id ID> + inline void query:: + append (val_bind<T> v) + { + add ( + details::shared_ptr<query_param> ( + new (details::shared) query_param_impl<T, ID> (v))); + } + + template <typename T, database_type_id ID> + inline void query:: + append (ref_bind<T> r) + { + add ( + details::shared_ptr<query_param> ( + new (details::shared) query_param_impl<T, ID> (r))); + } + } +} |