aboutsummaryrefslogtreecommitdiff
path: root/odb/forward.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-07 15:00:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-07 15:00:06 +0200
commitbcf5fce175953bec0fd2725968828850a74d8539 (patch)
tree74388e8f50f893d53cf748a34b601c96557d0228 /odb/forward.hxx
parent02e8d8116c01594716323fc6e03ede7094699d5c (diff)
Add support for SQL statement tracing
Diffstat (limited to 'odb/forward.hxx')
-rw-r--r--odb/forward.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/odb/forward.hxx b/odb/forward.hxx
index b253118..41ed70f 100644
--- a/odb/forward.hxx
+++ b/odb/forward.hxx
@@ -8,6 +8,7 @@
#include <odb/pre.hxx>
+#include <odb/details/export.hxx>
#include <odb/details/shared-ptr-fwd.hxx>
namespace odb
@@ -16,6 +17,7 @@ namespace odb
class connection;
typedef details::shared_ptr<connection> connection_ptr;
class transaction;
+ class statement;
class session;
namespace core
@@ -24,9 +26,20 @@ namespace odb
using odb::connection;
using odb::connection_ptr;
using odb::transaction;
+ using odb::statement;
using odb::session;
}
+ // Tracing.
+ //
+ class tracer; // Not in core.
+ extern LIBODB_EXPORT tracer& stderr_tracer;
+
+ namespace core
+ {
+ using odb::stderr_tracer;
+ }
+
// Implementation details.
//