diff options
Diffstat (limited to 'odb/mysql/query.ixx')
-rw-r--r-- | odb/mysql/query.ixx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/odb/mysql/query.ixx b/odb/mysql/query.ixx new file mode 100644 index 0000000..9562bd1 --- /dev/null +++ b/odb/mysql/query.ixx @@ -0,0 +1,28 @@ +// file : odb/mysql/query.ixx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2009-2010 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +namespace odb +{ + namespace mysql + { + template <typename T, image_id_type ID> + inline void query:: + append (val_bind<T> v) + { + add ( + shared_ptr<query_param> ( + new (shared) query_param_impl<T, ID> (v))); + } + + template <typename T, image_id_type ID> + inline void query:: + append (ref_bind<T> r) + { + add ( + shared_ptr<query_param> ( + new (shared) query_param_impl<T, ID> (r))); + } + } +} |