aboutsummaryrefslogtreecommitdiff
path: root/brep/shared-database.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-14 13:03:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-23 13:53:50 +0200
commitbcd246076540a8353fa55fc0a5e19343c1a2dbc9 (patch)
tree9fe2c24ca33b3d670267a5cbc8c8c756589f359b /brep/shared-database.cxx
parent24903813d11813f8ff9ac906d23b21e6c33b981d (diff)
Implement package search service mockup
Diffstat (limited to 'brep/shared-database.cxx')
-rw-r--r--brep/shared-database.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/brep/shared-database.cxx b/brep/shared-database.cxx
index fb952d8..fc17659 100644
--- a/brep/shared-database.cxx
+++ b/brep/shared-database.cxx
@@ -10,14 +10,14 @@
#include <odb/pgsql/database.hxx>
using namespace std;
-using namespace odb;
namespace brep
{
- shared_ptr<database>
- shared_database (const string& host, unsigned int port)
+ shared_ptr<odb::database>
+ shared_database (const string& h, unsigned int p)
{
- static weak_ptr<pgsql::database> db;
+ using odb::pgsql::database;
+ static weak_ptr<database> db;
// In C++11, function-static variable initialization is
// guaranteed to be thread-safe, thought this doesn't