Pass database as a parameter in connect

When connecting to a node, a database can now be optionally given as a
parameter. This makes testing with different databases easier as the need
to use the explicit functions is removed.
This commit is contained in:
Markus Mäkelä
2018-11-19 13:01:37 +02:00
parent cb67d4cee3
commit aa2572c677
4 changed files with 38 additions and 32 deletions

View File

@ -150,8 +150,8 @@ public:
*/
char* revert_snapshot_command;
int connect(int i);
int connect();
int connect(int i, const std::string& db = "test");
int connect(const std::string& db = "test");
/**
* Repeatedly try to connect with one second sleep in between attempts