Struct rustorm::config::DbConfig
[−]
[src]
pub struct DbConfig { pub platform: String, pub username: Option<String>, pub password: Option<String>, pub host: Option<Host>, pub port: Option<u16>, pub database: String, pub ssl: bool, }
Fields
platform | postgres, sqlite, mysql some fields are optional since sqlite is not applicable for those |
username | |
password | |
host | localhost |
port | 5432 |
database | |
ssl |
Methods
impl DbConfig
fn from_url(url: &str) -> Option<Self>
TODO: get rid of the hacky way parsing database url https://github.com/servo/rust-url/issues/40