aboutsummaryrefslogtreecommitdiff
path: root/odb/database.hxx
diff options
context:
space:
mode:
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_;
};
}