aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/query.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/pgsql/query.ixx')
-rw-r--r--odb/pgsql/query.ixx28
1 files changed, 28 insertions, 0 deletions
diff --git a/odb/pgsql/query.ixx b/odb/pgsql/query.ixx
new file mode 100644
index 0000000..05561a2
--- /dev/null
+++ b/odb/pgsql/query.ixx
@@ -0,0 +1,28 @@
+// file : odb/pgsql/query.ixx
+// author : Constantin Michael <constantin@codesynthesis.com>
+// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+namespace odb
+{
+ namespace pgsql
+ {
+ 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)));
+ }
+ }
+}