diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-06 16:54:06 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-09-06 16:54:06 +0200 |
commit | 1b1cb92a27592da6ab9300b2c5c8384f7588e2af (patch) | |
tree | 2c4a92f14c303ff3aaced4e7b073f7180c0c5d6a /odb/sqlite/statements-base.hxx | |
parent | 7d3f2b0badf4298bca53936d22a0a22c74538713 (diff) |
Support for views; native part
Diffstat (limited to 'odb/sqlite/statements-base.hxx')
-rw-r--r-- | odb/sqlite/statements-base.hxx | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/odb/sqlite/statements-base.hxx b/odb/sqlite/statements-base.hxx new file mode 100644 index 0000000..a2d5a81 --- /dev/null +++ b/odb/sqlite/statements-base.hxx @@ -0,0 +1,51 @@ +// file : odb/sqlite/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_SQLITE_STATEMENTS_BASE_HXX +#define ODB_SQLITE_STATEMENTS_BASE_HXX + +#include <odb/pre.hxx> + +#include <odb/details/shared-ptr.hxx> + +#include <odb/sqlite/version.hxx> +#include <odb/sqlite/forward.hxx> // connection + +#include <odb/sqlite/details/export.hxx> + +namespace odb +{ + namespace sqlite + { + class LIBODB_SQLITE_EXPORT statements_base: public details::shared_base + { + public: + typedef sqlite::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_SQLITE_STATEMENTS_BASE_HXX |