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.hxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'odb/sqlite/connection.hxx') diff --git a/odb/sqlite/connection.hxx b/odb/sqlite/connection.hxx index 5eb1995..3524a48 100644 --- a/odb/sqlite/connection.hxx +++ b/odb/sqlite/connection.hxx @@ -19,6 +19,7 @@ #include #include +#include #include #include #include @@ -68,6 +69,21 @@ namespace odb virtual unsigned long long execute (const char* statement, std::size_t length); + // Query preparation. + // + public: + template + prepared_query + prepare_query (const char* name, const char*); + + template + prepared_query + prepare_query (const char* name, const std::string&); + + template + prepared_query + prepare_query (const char* name, const query&); + // SQL statement tracing. // public: @@ -153,6 +169,8 @@ namespace odb } } +#include + #include #endif // ODB_SQLITE_CONNECTION_HXX -- cgit v1.1