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

+1 -1
View File
@@ -216,7 +216,7 @@ struct ExpressionAlias {
fn parse_expression_alias(column: &str) -> Option<ExpressionAlias> {
let trimmed_end = column.trim_end();
for (index, _) in trimmed_end.match_indices(|c: char| c == 'A' || c == 'a') {
for (index, _) in trimmed_end.match_indices(['A', 'a']) {
let candidate = &trimmed_end[index..];
if !candidate.get(..2).is_some_and(|prefix| prefix.eq_ignore_ascii_case("AS")) {
continue;