aboutsummaryrefslogtreecommitdiff
path: root/odb/statement.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-11-07 15:00:06 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-11-07 15:00:06 +0200
commitbcf5fce175953bec0fd2725968828850a74d8539 (patch)
tree74388e8f50f893d53cf748a34b601c96557d0228 /odb/statement.hxx
parent02e8d8116c01594716323fc6e03ede7094699d5c (diff)
Add support for SQL statement tracing
Diffstat (limited to 'odb/statement.hxx')
-rw-r--r--odb/statement.hxx38
1 files changed, 38 insertions, 0 deletions
diff --git a/odb/statement.hxx b/odb/statement.hxx
new file mode 100644
index 0000000..ca6df5a
--- /dev/null
+++ b/odb/statement.hxx
@@ -0,0 +1,38 @@
+// file : odb/statement.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
+// license : GNU GPL v2; see accompanying LICENSE file
+
+#ifndef ODB_STATEMENT_HXX
+#define ODB_STATEMENT_HXX
+
+#include <odb/pre.hxx>
+
+#include <odb/forward.hxx>
+
+#include <odb/details/export.hxx>
+#include <odb/details/shared-ptr.hxx>
+
+namespace odb
+{
+ class LIBODB_EXPORT statement: public details::shared_base
+ {
+ public:
+ virtual
+ ~statement () = 0;
+
+ statement () {}
+
+ private:
+ statement (const statement&);
+ statement& operator= (const statement&);
+
+ public:
+ virtual const char*
+ text () const = 0;
+ };
+}
+
+#include <odb/post.hxx>
+
+#endif // ODB_MYSQL_STATEMENT_HXX