rm url field from DatabaseBuilder

This commit is contained in:
realaravinth
2021-12-18 15:33:17 +05:30
parent fe1fc3fb20
commit f15df541c1

View File

@@ -71,7 +71,6 @@ struct DatabaseBuilder {
pub username: String, pub username: String,
pub password: String, pub password: String,
pub name: String, pub name: String,
pub url: String,
} }
impl DatabaseBuilder { impl DatabaseBuilder {
@@ -85,7 +84,6 @@ impl DatabaseBuilder {
port: url.port().expect("Enter database port").into(), port: url.port().expect("Enter database port").into(),
hostname: url.host().expect("Enter database host").to_string(), hostname: url.host().expect("Enter database host").to_string(),
username: url.username().into(), username: url.username().into(),
url: url.to_string(),
password: url.password().expect("Enter database password").into(), password: url.password().expect("Enter database password").into(),
name, name,
} }