[DB] Use a single shared pool of connections to the database

This commit is contained in:
emeric
2015-08-19 13:31:50 +02:00
parent 4b35e03ef8
commit e18221689f
23 changed files with 89 additions and 62 deletions
+3 -1
View File
@@ -31,7 +31,9 @@ int main(void)
boost::filesystem::remove("test.db");
Handler db("test.db");
std::unique_ptr<Wt::Dbo::SqlConnectionPool> connectionPool(Database::Handler::createConnectionPool( "test.db"));
Handler db( *connectionPool );
// Create
{