From 1d664d31bdfc341ca642948efdf395e7922141f6 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 7 Nov 2011 15:00:07 +0200 Subject: Add support for SQL statement tracing --- odb/oracle/database.hxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'odb/oracle/database.hxx') 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 #include +#include #include #include #include @@ -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 (); -- cgit v1.1