aboutsummaryrefslogtreecommitdiff
path: root/bdep/diagnostics.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-03-08 18:06:26 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-03-08 18:06:26 +0200
commitdf5e58e6e5eb2727a185bf9a98a462c18fa3a83d (patch)
treefb0cc76643865390ac3e45462d51ea02575a3175 /bdep/diagnostics.cxx
parentf9ebe2d1e920df001be2dd543a63677f8728f53d (diff)
Setup project database infrastructure
Diffstat (limited to 'bdep/diagnostics.cxx')
-rw-r--r--bdep/diagnostics.cxx25
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::