aboutsummaryrefslogtreecommitdiff
path: root/brep/view.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'brep/view.cxx')
-rw-r--r--brep/view.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/brep/view.cxx b/brep/view.cxx
index 08e2592..2f3bd17 100644
--- a/brep/view.cxx
+++ b/brep/view.cxx
@@ -11,12 +11,11 @@
#include <odb/database.hxx>
#include <odb/transaction.hxx>
-#include <odb/pgsql/database.hxx>
-
#include <web/module>
#include <brep/package>
#include <brep/package-odb>
+#include <brep/shared-database>
using namespace std;
using namespace odb::core;
@@ -31,11 +30,7 @@ namespace brep
cli::unknown_mode::fail,
cli::unknown_mode::fail);
- db_ = make_shared<odb::pgsql::database> ("",
- "",
- "brep",
- options_->db_host (),
- options_->db_port ());
+ db_ = shared_database (options_->db_host (), options_->db_port ());
}
void view::