From bcf5fce175953bec0fd2725968828850a74d8539 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 7 Nov 2011 15:00:06 +0200 Subject: Add support for SQL statement tracing --- odb/transaction.hxx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'odb/transaction.hxx') diff --git a/odb/transaction.hxx b/odb/transaction.hxx index 0d4f518..e8488a4 100644 --- a/odb/transaction.hxx +++ b/odb/transaction.hxx @@ -49,6 +49,7 @@ namespace odb connection_type& connection (); + public: // Return true if there is a transaction in effect. // static bool @@ -70,6 +71,20 @@ namespace odb static void reset_current (); + // SQL statement tracing. + // + public: + typedef odb::tracer tracer_type; + + void + tracer (tracer_type&); + + void + tracer (tracer_type*); + + tracer_type* + tracer () const; + public: transaction_impl& implementation (); -- cgit v1.1