diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-05 10:20:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-05 10:20:47 +0200 |
commit | 0979184f66b49440758b7fc2b81172af7fe47ad8 (patch) | |
tree | 212b703960772b904f42f08d12ed37abe86297b7 /odb/mysql/statements-base.hxx | |
parent | 141253ea17264e122e440cae441bf3d952329d35 (diff) |
Support for views; native part
Diffstat (limited to 'odb/mysql/statements-base.hxx')
-rw-r--r-- | odb/mysql/statements-base.hxx | 51 |
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 |