diff options
Diffstat (limited to 'odb/sqlite/connection.hxx')
-rw-r--r-- | odb/sqlite/connection.hxx | 18 |
1 files changed, 18 insertions, 0 deletions
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 <odb/sqlite/version.hxx> #include <odb/sqlite/forward.hxx> +#include <odb/sqlite/query.hxx> #include <odb/sqlite/tracer.hxx> #include <odb/sqlite/transaction-impl.hxx> #include <odb/sqlite/auto-handle.hxx> @@ -68,6 +69,21 @@ namespace odb virtual unsigned long long execute (const char* statement, std::size_t length); + // Query preparation. + // + public: + template <typename T> + prepared_query<T> + prepare_query (const char* name, const char*); + + template <typename T> + prepared_query<T> + prepare_query (const char* name, const std::string&); + + template <typename T> + prepared_query<T> + prepare_query (const char* name, const query<T>&); + // SQL statement tracing. // public: @@ -153,6 +169,8 @@ namespace odb } } +#include <odb/sqlite/connection.ixx> + #include <odb/post.hxx> #endif // ODB_SQLITE_CONNECTION_HXX |