From df5e58e6e5eb2727a185bf9a98a462c18fa3a83d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 8 Mar 2018 18:06:26 +0200 Subject: Setup project database infrastructure --- bdep/diagnostics.cxx | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'bdep/diagnostics.cxx') diff --git a/bdep/diagnostics.cxx b/bdep/diagnostics.cxx index f596e49..cd77a91 100644 --- a/bdep/diagnostics.cxx +++ b/bdep/diagnostics.cxx @@ -4,6 +4,8 @@ #include +#include + #include #include // operator<<(ostream, process_arg) @@ -58,6 +60,29 @@ namespace bdep r << name_ << ": "; } + // trace + // + void trace_mark_base:: + prepare (odb::connection&, const odb::statement& s) + { + if (verb >= 6) + static_cast (*this) << "PREPARE " << s.text (); + } + + void trace_mark_base:: + execute (odb::connection&, const char* stmt) + { + if (verb >= 5) + static_cast (*this) << stmt; + } + + void trace_mark_base:: + deallocate (odb::connection&, const odb::statement& s) + { + if (verb >= 6) + static_cast (*this) << "DEALLOCATE " << s.text (); + } + // tracer // void tracer:: -- cgit v1.1