aboutsummaryrefslogtreecommitdiff
path: root/odb/database.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-01-18 11:21:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-01-18 11:22:56 +0200
commitec43590b14924bdb2ab2afe4b9b705ab05a52901 (patch)
tree6a37f5c31caf2d2016e94461923ea9c60da4b34d /odb/database.hxx
parentfad90d1a9c1498e5cf749022a07d1830005e4594 (diff)
Add support for native SQL statement execution
New test: mysql/native. New manual section: 3.9, "Executing Native SQL Statements".
Diffstat (limited to 'odb/database.hxx')
-rw-r--r--odb/database.hxx13
1 files changed, 13 insertions, 0 deletions
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 <odb/pre.hxx>
#include <string>
+#include <cstddef> // std::size_t
#include <odb/traits.hxx>
#include <odb/forward.hxx>
@@ -142,6 +143,18 @@ namespace odb
query (const odb::query<typename object_traits<T>::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: