diff --git a/CHANGELOG.md b/CHANGELOG.md index 81933a60c..5f93cb212 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Space key toggles FK preview popover on selected cell, rebindable in Settings > Keyboard (#648) +### Fixed + +- Accept SQLAlchemy-style connection URLs with driver hints (e.g., `postgresql+psycopg://`) (#642) + ## [0.29.0] - 2026-04-09 ### Added diff --git a/TablePro/Core/Utilities/Connection/ConnectionURLParser.swift b/TablePro/Core/Utilities/Connection/ConnectionURLParser.swift index 1f4c34f62..b4f1f5190 100644 --- a/TablePro/Core/Utilities/Connection/ConnectionURLParser.swift +++ b/TablePro/Core/Utilities/Connection/ConnectionURLParser.swift @@ -88,6 +88,9 @@ struct ConnectionURLParser { if scheme.hasSuffix("+ssh") { isSSH = true scheme = String(scheme.dropLast(4)) + } else if let plusIdx = scheme.lastIndex(of: "+"), + !scheme.hasSuffix("+srv") { + scheme = String(scheme[scheme.startIndex..