diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-13 13:39:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-08-13 13:39:57 +0200 |
commit | bad675ea0e17b6eb18d75ddc403b81ff5f76ad25 (patch) | |
tree | 388a59f0c92eb4f59e812d9e38e4c1a6c8d80471 /odb/mysql/query.ixx | |
parent | 107c3754b2eccd0f2a30121aab9b29c25f83e40c (diff) |
Add support for language-embedded query
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))); + } + } +} |