pub fn read(filename: &str) -> Result<GenericConfiguration>
Expand description

§Reads configuration from provided file

If file does not exist or we cannot read the content of the file, we use the default values

Examples found in repository?
examples/generate_mysql.rs (line 9)
8
9
10
11
12
fn main() {
    let config: GenericConfiguration = configuration::reader::read("./config.json").unwrap();
    let mut db = Mysql::new();
    db.spawn(&config, 10);
}