aboutsummaryrefslogtreecommitdiff
path: root/odb/sqlite/statements-base.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/sqlite/statements-base.hxx')
-rw-r--r--odb/sqlite/statements-base.hxx51
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