aboutsummaryrefslogtreecommitdiff
path: root/odb/connection.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-04 11:33:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-19 11:38:24 +0200
commitf101a400442692f349822ab1d9119bca5d2b7240 (patch)
treee046f3b727226810d08813cc4c7a55244937f275 /odb/connection.txx
parentbe97326d67365e16175cc599e23348feaf80e0fe (diff)
Initial support for prepared queries
Diffstat (limited to 'odb/connection.txx')
-rw-r--r--odb/connection.txx15
1 files changed, 15 insertions, 0 deletions
diff --git a/odb/connection.txx b/odb/connection.txx
new file mode 100644
index 0000000..f44cdad
--- /dev/null
+++ b/odb/connection.txx
@@ -0,0 +1,15 @@
+// file : odb/connection.txx
+// copyright : Copyright (c) 2009-2012 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+namespace odb
+{
+ template <typename T>
+ prepared_query<T> connection::
+ prepare_query (const char* n, const query<T>& q)
+ {
+ //@@ Views. Inline?
+ //
+ return prepared_query<T> (object_traits<T>::prepare_query (*this, n, q));
+ }
+}