aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/statements-base.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/pgsql/statements-base.hxx')
-rw-r--r--odb/pgsql/statements-base.hxx51
1 files changed, 51 insertions, 0 deletions
diff --git a/odb/pgsql/statements-base.hxx b/odb/pgsql/statements-base.hxx
new file mode 100644
index 0000000..54474dd
--- /dev/null
+++ b/odb/pgsql/statements-base.hxx
@@ -0,0 +1,51 @@
+// file : odb/pgsql/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_PGSQL_STATEMENTS_BASE_HXX
+#define ODB_PGSQL_STATEMENTS_BASE_HXX
+
+#include <odb/pre.hxx>
+
+#include <odb/details/shared-ptr.hxx>
+
+#include <odb/pgsql/version.hxx>
+#include <odb/pgsql/forward.hxx> // connection
+
+#include <odb/pgsql/details/export.hxx>
+
+namespace odb
+{
+ namespace pgsql
+ {
+ class LIBODB_PGSQL_EXPORT statements_base: public details::shared_base
+ {
+ public:
+ typedef pgsql::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_PGSQL_STATEMENTS_BASE_HXX