DPP-MySQL
An extremely lightweight MySQL wrapper for D++ bots
|
Functions | |
void | init (const std::string &config_file) |
Initialise config file. More... | |
json & | get (const std::string &key="") |
Get all config values from a specific key. More... | |
bool | exists (const std::string &key) |
bool config::exists | ( | const std::string & | key | ) |
Returns true if the specified key exists
key |
json& config::get | ( | const std::string & | key = "" | ) |
Get all config values from a specific key.
key | The key, if empty/omitted the root node is returned |
void config::init | ( | const std::string & | config_file | ) |
Initialise config file.
config_file | Config file to read |