aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/transaction-impl.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-08-21 16:27:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-08-21 16:27:34 +0200
commitee570de4bd013fd2a4351d33d11539621f00bf57 (patch)
tree48a7857b2e5fcf799ae4773cbd61252b76ec7512 /odb/pgsql/transaction-impl.hxx
parent6e3ac760696d4ec43138b1aba82426582c767072 (diff)
Add odb::connection class
This abstract class represents a connection to the database. One can use it to start a transaction or to execute a native statement out of a transaction. Before we had concrete connection classes in the database runtime libraries (e.g., odb::mysql::connection). Now these classes derive from odb::connection.
Diffstat (limited to 'odb/pgsql/transaction-impl.hxx')
-rw-r--r--odb/pgsql/transaction-impl.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/odb/pgsql/transaction-impl.hxx b/odb/pgsql/transaction-impl.hxx
index 9b4ec56..d3a76ce 100644
--- a/odb/pgsql/transaction-impl.hxx
+++ b/odb/pgsql/transaction-impl.hxx
@@ -24,13 +24,13 @@ namespace odb
class LIBODB_PGSQL_EXPORT transaction_impl: public odb::transaction_impl
{
protected:
- friend class database;
+ friend class connection;
friend class transaction;
typedef pgsql::database database_type;
typedef pgsql::connection connection_type;
- transaction_impl (database_type&);
+ transaction_impl (connection_ptr);
virtual
~transaction_impl ();
@@ -45,7 +45,7 @@ namespace odb
connection ();
private:
- details::shared_ptr<connection_type> connection_;
+ connection_ptr connection_;
};
}
}