aboutsummaryrefslogtreecommitdiff
path: root/odb/pgsql/database.hxx
diff options
context:
space:
mode:
authorConstantin Michael <constantin@codesynthesis.com>2011-05-11 09:08:22 +0200
committerConstantin Michael <constantin@codesynthesis.com>2011-05-11 09:27:47 +0200
commitfd0eb17d25ee829557549255ec64f9b9b063ec8b (patch)
tree279c36bda3559b908d99f7ab87dbd192c57b4a29 /odb/pgsql/database.hxx
parentf26337fb02c2f01382486407c2b3d7432df9bd37 (diff)
Uncomment calls to connection and connection-factory interface
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 fbd15b9..833e472 100644
--- a/odb/pgsql/database.hxx
+++ b/odb/pgsql/database.hxx
@@ -16,6 +16,7 @@
#include <odb/pgsql/version.hxx>
#include <odb/pgsql/forward.hxx>
+#include <odb/pgsql/connection-factory.hxx>
#include <odb/pgsql/details/export.hxx>
@@ -26,6 +27,9 @@ namespace odb
class LIBODB_PGSQL_EXPORT database: public odb::database
{
public:
+ typedef pgsql::connection connection_type;
+
+ public:
database (const std::string& db,
const std::string& user,
const std::string& password,
@@ -88,10 +92,8 @@ namespace odb
// begin ();
public:
- // @@ Implement on completion of supporting code.
- //
- // details::shared_ptr<connection_type>
- // connection ();
+ details::shared_ptr<connection_type>
+ connection ();
public:
virtual