fix struct error

pull/129/head
susiyaki 3 years ago
parent 7243c20686
commit 6edd6f9399

@ -51,6 +51,7 @@ impl Default for Config {
Self {
conn: vec![Connection {
r#type: DatabaseType::MySql,
name: None,
user: Some("root".to_string()),
host: Some("localhost".to_string()),
port: Some(3306),
@ -67,6 +68,7 @@ impl Default for Config {
#[derive(Debug, Deserialize, Clone)]
pub struct Connection {
r#type: DatabaseType,
name: Option<String>,
user: Option<String>,
host: Option<String>,
port: Option<u64>,

Loading…
Cancel
Save