From d94948b8bccfd8748245726487d54c41bb199baf Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 12 Oct 2012 17:24:44 +0200 Subject: Completion of prepared query support --- odb/sqlite/connection.ixx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 odb/sqlite/connection.ixx (limited to 'odb/sqlite/connection.ixx') 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 + inline prepared_query connection:: + prepare_query (const char* n, const char* q) + { + return prepare_query (n, query (q)); + } + + template + inline prepared_query connection:: + prepare_query (const char* n, const std::string& q) + { + return prepare_query (n, query (q)); + } + + template + inline prepared_query connection:: + prepare_query (const char* n, const query& q) + { + return query_::call (*this, n, q); + } + } +} -- cgit v1.1