diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-12 17:24:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-12 17:24:44 +0200 |
commit | a049724c258a42af57d1ff572c3d15a3678e3875 (patch) | |
tree | 17180c89cedc2e137824f5569e0bc2078eaf10b1 /odb/mssql/connection.hxx | |
parent | d3261c7ed4ac622c8807ba88b39bd41632577c4f (diff) |
Completion of prepared query support
Diffstat (limited to 'odb/mssql/connection.hxx')
-rw-r--r-- | odb/mssql/connection.hxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/odb/mssql/connection.hxx b/odb/mssql/connection.hxx index 10cc4fc..2744f4f 100644 --- a/odb/mssql/connection.hxx +++ b/odb/mssql/connection.hxx @@ -17,6 +17,7 @@ #include <odb/mssql/mssql-fwd.hxx> #include <odb/mssql/version.hxx> #include <odb/mssql/forward.hxx> +#include <odb/mssql/query.hxx> #include <odb/mssql/tracer.hxx> #include <odb/mssql/transaction-impl.hxx> #include <odb/mssql/auto-handle.hxx> @@ -60,6 +61,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: @@ -135,6 +151,8 @@ namespace odb } } +#include <odb/mssql/connection.ixx> + #include <odb/post.hxx> #endif // ODB_MSSQL_CONNECTION_HXX |