aboutsummaryrefslogtreecommitdiff
path: root/mod/database
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-04 20:53:00 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-19 22:16:46 +0300
commitdbbc19b77dcf6ea828aabd64d7aa8cab9635aaf5 (patch)
treec0b9b449b7064dff3613628022224e6c18148c3e /mod/database
parentefb9c3e0e6b612d5bfadc7a2b984c14b5439335c (diff)
Implement build task, result and log requests handling
Diffstat (limited to 'mod/database')
-rw-r--r--mod/database15
1 files changed, 8 insertions, 7 deletions
diff --git a/mod/database b/mod/database
index 8e9fdd1..9a83752 100644
--- a/mod/database
+++ b/mod/database
@@ -10,17 +10,18 @@
#include <brep/types>
#include <brep/utility>
-#include <mod/options>
-
namespace brep
{
- // Returns pointer to the shared database instance, creating one on the
- // first call. On subsequent calls ensures passed host and port equals
- // to ones of the existing database instance throwing runtime_error
- // otherwise. Is not thread-safe.
+ // Return pointer to the shared database instance, creating one on the first
+ // call. Throw odb::exception on failure. Is not thread-safe.
//
shared_ptr<odb::core::database>
- shared_database (const options::db&);
+ shared_database (string user,
+ string password,
+ string name,
+ string host,
+ uint16_t port,
+ size_t max_connections);
}
#endif // MOD_DATABASE