From 1b1cb92a27592da6ab9300b2c5c8384f7588e2af Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 6 Sep 2011 16:54:06 +0200 Subject: Support for views; native part --- odb/sqlite/statements-base.hxx | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 odb/sqlite/statements-base.hxx (limited to 'odb/sqlite/statements-base.hxx') 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 +// 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 + +#include + +#include +#include // connection + +#include + +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 + +#endif // ODB_SQLITE_STATEMENTS_BASE_HXX -- cgit v1.1