aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/query.ixx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-07-04 10:11:02 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-07-04 10:11:02 +0200
commit0bf87e33b786fc64ae5bf059205de1fa674ab788 (patch)
treec11e4e5a3e24b4a13b950cc55334d4b3dfcfb064 /odb/pgsql/query.ixx
parentbef81b1627c2c31dc22cd2b18920ed8db230a94c (diff)
Add query and result implementation
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)));
+ }
+ }
+}