diff options
Diffstat (limited to 'odb/pgsql/database.hxx')
-rw-r--r-- | odb/pgsql/database.hxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/odb/pgsql/database.hxx b/odb/pgsql/database.hxx index 1b688fc..52e48c3 100644 --- a/odb/pgsql/database.hxx +++ b/odb/pgsql/database.hxx @@ -18,6 +18,7 @@ #include <odb/pgsql/version.hxx> #include <odb/pgsql/forward.hxx> +#include <odb/pgsql/tracer.hxx> #include <odb/pgsql/connection.hxx> #include <odb/pgsql/connection-factory.hxx> @@ -98,6 +99,25 @@ namespace odb virtual odb::connection* connection_ (); + // SQL statement tracing. + // + public: + typedef pgsql::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: const std::string& user () const |