fix struct error

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

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

Loading…
Cancel
Save