aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/connection.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/sqlite/connection.ixx')
-rw-r--r--odb/sqlite/connection.ixx30
1 files changed, 30 insertions, 0 deletions
diff --git a/odb/sqlite/connection.ixx b/odb/sqlite/connection.ixx
new file mode 100644
index 0000000..9117bd4
--- /dev/null
+++ b/odb/sqlite/connection.ixx
@@ -0,0 +1,30 @@
+// file : odb/sqlite/connection.ixx
+// copyright : Copyright (c) 2005-2012 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+namespace odb
+{
+ namespace sqlite
+ {
+ template <typename T>
+ inline prepared_query<T> connection::
+ prepare_query (const char* n, const char* q)
+ {
+ return prepare_query<T> (n, query<T> (q));
+ }
+
+ template <typename T>
+ inline prepared_query<T> connection::
+ prepare_query (const char* n, const std::string& q)
+ {
+ return prepare_query<T> (n, query<T> (q));
+ }
+
+ template <typename T>
+ inline prepared_query<T> connection::
+ prepare_query (const char* n, const query<T>& q)
+ {
+ return query_<T, id_sqlite>::call (*this, n, q);
+ }
+ }
+}