diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-04 11:33:49 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-19 11:38:24 +0200 |
commit | f101a400442692f349822ab1d9119bca5d2b7240 (patch) | |
tree | e046f3b727226810d08813cc4c7a55244937f275 /odb/connection.ixx | |
parent | be97326d67365e16175cc599e23348feaf80e0fe (diff) |
Initial support for prepared queries
Diffstat (limited to 'odb/connection.ixx')
-rw-r--r-- | odb/connection.ixx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/odb/connection.ixx b/odb/connection.ixx index fa2d510..fd1a624 100644 --- a/odb/connection.ixx +++ b/odb/connection.ixx @@ -30,6 +30,20 @@ namespace odb return execute (st.c_str (), st.size ()); } + 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)); + } + inline void connection:: tracer (tracer_type& t) { |