aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/database.hxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-05-11 11:12:49 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-05-11 11:22:46 +0200
commit4e955852b9d59338a5bb50facc1594e97b8ca2d8 (patch)
tree7839b4c04a49b89873d98c4156b142a35a5fb395 /odb/pgsql/database.hxx
parent78e81069aadc609aee1e4b8137516d9cfce47b0a (diff)
Add transaction support to database
Diffstat (limited to 'odb/pgsql/database.hxx')
-rw-r--r--odb/pgsql/database.hxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/odb/pgsql/database.hxx b/odb/pgsql/database.hxx
index 833e472..a45fbb0 100644
--- a/odb/pgsql/database.hxx
+++ b/odb/pgsql/database.hxx
@@ -14,9 +14,13 @@
#include <odb/database.hxx>
+#include <odb/details/shared-ptr.hxx>
+
#include <odb/pgsql/version.hxx>
#include <odb/pgsql/forward.hxx>
+#include <odb/pgsql/connection.hxx>
#include <odb/pgsql/connection-factory.hxx>
+#include <odb/pgsql/transaction-impl.hxx>
#include <odb/pgsql/details/export.hxx>
@@ -86,10 +90,8 @@ namespace odb
// execute (const char* statement, std::size_t length);
public:
- // @@ Implement on completion of supporting code.
- //
- // virtual transaction_impl*
- // begin ();
+ virtual transaction_impl*
+ begin ();
public:
details::shared_ptr<connection_type>