feat(connection): add connection colors and database tab labels

This commit is contained in:
t8y2
2026-04-30 13:18:15 +08:00
parent 5c546f68af
commit 1a60c5b7ac
7 changed files with 82 additions and 2 deletions
+3
View File
@@ -12,6 +12,8 @@ pub struct ConnectionConfig {
pub password: String,
pub database: Option<String>,
#[serde(default)]
pub color: Option<String>,
#[serde(default)]
pub ssh_enabled: bool,
#[serde(default)]
pub ssh_host: String,
@@ -125,6 +127,7 @@ mod tests {
username: username.to_string(),
password: password.to_string(),
database: database.map(str::to_string),
color: None,
ssh_enabled: false,
ssh_host: String::new(),
ssh_port: 22,