aboutsummaryrefslogtreecommitdiff
path: root/odb/mysql/statements-base.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/mysql/statements-base.hxx')
-rw-r--r--odb/mysql/statements-base.hxx51
1 files changed, 51 insertions, 0 deletions
diff --git a/odb/mysql/statements-base.hxx b/odb/mysql/statements-base.hxx
new file mode 100644
index 0000000..24f5cb2
--- /dev/null
+++ b/odb/mysql/statements-base.hxx
@@ -0,0 +1,51 @@
+// file : odb/mysql/statements-base.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_MYSQL_STATEMENTS_BASE_HXX
+#define ODB_MYSQL_STATEMENTS_BASE_HXX
+
+#include <odb/pre.hxx>
+
+#include <odb/details/shared-ptr.hxx>
+
+#include <odb/mysql/version.hxx>
+#include <odb/mysql/forward.hxx> // connection
+
+#include <odb/mysql/details/export.hxx>
+
+namespace odb
+{
+ namespace mysql
+ {
+ class LIBODB_MYSQL_EXPORT statements_base: public details::shared_base
+ {
+ public:
+ typedef mysql::connection connection_type;
+
+ connection_type&
+ connection ()
+ {
+ return conn_;
+ }
+
+ public:
+ virtual
+ ~statements_base ();
+
+ protected:
+ statements_base (connection_type& conn)
+ : conn_ (conn)
+ {
+ }
+
+ protected:
+ connection_type& conn_;
+ };
+ }
+}
+
+#include <odb/post.hxx>
+
+#endif // ODB_MYSQL_STATEMENTS_BASE_HXX