aboutsummaryrefslogtreecommitdiff
path: root/odb/database.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/database.hxx
parent02e8d8116c01594716323fc6e03ede7094699d5c (diff)
Add support for SQL statement tracing
Diffstat (limited to 'odb/database.hxx')
-rw-r--r--odb/database.hxx23
1 files changed, 20 insertions, 3 deletions
diff --git a/odb/database.hxx b/odb/database.hxx
index c7816f6..e9c44f2 100644
--- a/odb/database.hxx
+++ b/odb/database.hxx
@@ -205,9 +205,27 @@ namespace odb
connection_ptr
connection ();
+ // SQL statement tracing.
+ //
+ public:
+ typedef odb::tracer tracer_type;
+
+ void
+ tracer (tracer_type&);
+
+ void
+ tracer (tracer_type*);
+
+ tracer_type*
+ tracer () const;
+
protected:
database ();
+ private:
+ database (const database&);
+ database& operator= (const database&);
+
protected:
typedef odb::connection connection_type;
@@ -230,9 +248,8 @@ namespace odb
template <typename T, class_kind kind>
struct query_;
- private:
- database (const database&);
- database& operator= (const database&);
+ protected:
+ tracer_type* tracer_;
};
}