aboutsummaryrefslogtreecommitdiff
path: root/odb/database.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/database.cxx')
-rw-r--r--odb/database.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/odb/database.cxx b/odb/database.cxx
index 89f0260..ca6c7cc 100644
--- a/odb/database.cxx
+++ b/odb/database.cxx
@@ -11,4 +11,14 @@ namespace odb
~database ()
{
}
+
+ unsigned long long database::
+ execute (const char* st, std::size_t n)
+ {
+ if (!transaction::has_current ())
+ throw not_in_transaction ();
+
+ connection_type& c (transaction::current ().connection ());
+ return c.execute (st, n);
+ }
}