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:
@ -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
|
||||
|
Reference in New Issue
Block a user