From ec43590b14924bdb2ab2afe4b9b705ab05a52901 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 18 Jan 2011 11:21:02 +0200 Subject: Add support for native SQL statement execution New test: mysql/native. New manual section: 3.9, "Executing Native SQL Statements". --- odb/database.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'odb/database.hxx') diff --git a/odb/database.hxx b/odb/database.hxx index e007a56..bc7a10b 100644 --- a/odb/database.hxx +++ b/odb/database.hxx @@ -9,6 +9,7 @@ #include #include +#include // std::size_t #include #include @@ -142,6 +143,18 @@ namespace odb query (const odb::query::object_type>&, bool cache = true); + // Native database statement execution. + // + public: + unsigned long long + execute (const char* statement); + + unsigned long long + execute (const std::string& statement); + + virtual unsigned long long + execute (const char* statement, std::size_t length) = 0; + // Transaction API. // public: -- cgit v1.1