aboutsummaryrefslogtreecommitdiff
path: root/odb/oracle/database.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-07 15:00:07 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-08 16:03:17 +0200
commit1d664d31bdfc341ca642948efdf395e7922141f6 (patch)
tree73bb369f5072aee7daf621d0cc009731178bf581 /odb/oracle/database.hxx
parent487bd012de7efc7237581b4a7aeac7fd817138fb (diff)
Add support for SQL statement tracing
Diffstat (limited to 'odb/oracle/database.hxx')
-rw-r--r--odb/oracle/database.hxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/odb/oracle/database.hxx b/odb/oracle/database.hxx
index 80b6fba..232b320 100644
--- a/odb/oracle/database.hxx
+++ b/odb/oracle/database.hxx
@@ -18,6 +18,7 @@
#include <odb/oracle/version.hxx>
#include <odb/oracle/forward.hxx>
+#include <odb/oracle/tracer.hxx>
#include <odb/oracle/connection.hxx>
#include <odb/oracle/connection-factory.hxx>
#include <odb/oracle/auto-handle.hxx>
@@ -145,6 +146,25 @@ namespace odb
return environment_;
}
+ // SQL statement tracing.
+ //
+ public:
+ typedef oracle::tracer tracer_type;
+
+ void
+ tracer (tracer_type& t)
+ {
+ odb::database::tracer (t);
+ }
+
+ void
+ tracer (tracer_type* t)
+ {
+ odb::database::tracer (t);
+ }
+
+ using odb::database::tracer;
+
public:
virtual
~database ();