aboutsummaryrefslogtreecommitdiff
path: root/odb/mssql/tracer.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-28 15:08:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-28 15:08:56 +0200
commit91c962e4615101e14be4c720fc386878ddb598a4 (patch)
tree9c62ace7ee457f9e7c1edd9c89a5b6fba274d363 /odb/mssql/tracer.cxx
parent8823eb1c28f6589068a080a68283a8ddb47cb71b (diff)
Implement statements; add support for tracing
Diffstat (limited to 'odb/mssql/tracer.cxx')
-rw-r--r--odb/mssql/tracer.cxx62
1 files changed, 62 insertions, 0 deletions
diff --git a/odb/mssql/tracer.cxx b/odb/mssql/tracer.cxx
new file mode 100644
index 0000000..023d192
--- /dev/null
+++ b/odb/mssql/tracer.cxx
@@ -0,0 +1,62 @@
+// file : odb/mssql/tracer.cxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2009-2011 Code Synthesis Tools CC
+// license : ODB NCUEL; see accompanying LICENSE file
+
+#include <odb/mssql/tracer.hxx>
+#include <odb/mssql/connection.hxx>
+#include <odb/mssql/statement.hxx>
+
+namespace odb
+{
+ namespace mssql
+ {
+ tracer::
+ ~tracer ()
+ {
+ }
+
+ void tracer::
+ prepare (connection&, const statement&)
+ {
+ }
+
+ void tracer::
+ execute (connection& c, const statement& s)
+ {
+ execute (c, s.text ());
+ }
+
+ void tracer::
+ deallocate (connection&, const statement&)
+ {
+ }
+
+ void tracer::
+ prepare (odb::connection& c, const odb::statement& s)
+ {
+ prepare (static_cast<connection&> (c),
+ static_cast<const statement&> (s));
+ }
+
+ void tracer::
+ execute (odb::connection& c, const odb::statement& s)
+ {
+ execute (static_cast<connection&> (c),
+ static_cast<const statement&> (s));
+ }
+
+ void tracer::
+ execute (odb::connection& c, const char* s)
+ {
+ execute (static_cast<connection&> (c), s);
+ }
+
+ void tracer::
+ deallocate (odb::connection& c, const odb::statement& s)
+ {
+ deallocate (static_cast<connection&> (c),
+ static_cast<const statement&> (s));
+ }
+ }
+}