feat: support double-clicking .db/.sqlite/.duckdb files to open in IDE

Add OS file association for database files (.db, .sqlite, .sqlite3, .duckdb)
so double-clicking them in Finder/Explorer automatically creates a connection.
If the same file path is already connected, prompts the user to switch instead.

Also fix 42 pre-existing clippy warnings in dbx-core (needless_borrow,
too_many_arguments, derivable_impls, manual_div_ceil, type_complexity, etc.).

Closes #527
This commit is contained in:
t8y2 committed 2026-05-29 17:25:52 +08:00
1 parent bbdb21c1e6
commit ef4baba57a
29 files changed
+344 -105

No files matched your search

+2 -6
View File
@@ -124,17 +124,13 @@ fn is_false(value: &bool) -> bool {
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq)]
#[serde(rename_all = "lowercase")]
#[derive(Default)]
pub enum ProxyType {
#[default]
Socks5,
Http,
}
impl Default for ProxyType {
fn default() -> Self {
Self::Socks5
}
}
#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq)]
#[serde(rename_all = "lowercase")]
pub enum DatabaseType {