diff options
Diffstat (limited to 'odb/pgsql/database.hxx')
-rw-r--r-- | odb/pgsql/database.hxx | 10 |
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 |