diff options
Diffstat (limited to 'bdep/diagnostics.cxx')
-rw-r--r-- | bdep/diagnostics.cxx | 25 |
1 files changed, 25 insertions, 0 deletions
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 <bdep/diagnostics.hxx> +#include <odb/statement.hxx> + #include <libbutl/process.mxx> #include <libbutl/process-io.mxx> // 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<trace_mark&> (*this) << "PREPARE " << s.text (); + } + + void trace_mark_base:: + execute (odb::connection&, const char* stmt) + { + if (verb >= 5) + static_cast<trace_mark&> (*this) << stmt; + } + + void trace_mark_base:: + deallocate (odb::connection&, const odb::statement& s) + { + if (verb >= 6) + static_cast<trace_mark&> (*this) << "DEALLOCATE " << s.text (); + } + // tracer // void tracer:: |