Repository navigation
Description
Problem
iCloud Sync brings every connection from the Mac to the iPhone and iPad, whatever its engine, but the iOS app has drivers for 11 types only: the 10 in the type picker plus Redshift (apple/TableProMobile/TableProMobile/Platform/IOSDriverFactory.swift:135). ios/index.mdx says so: "MongoDB, ClickHouse, Cassandra, BigQuery, Spanner, Snowflake and the rest have no iOS driver. Those connections still sync and still appear in the list, but opening one fails."
What the user sees today:
- The row looks the same as one that opens.
ConnectionListRowModelhas no notion of a type the device cannot open (apple/TableProMobile/TableProMobile/Helpers/ConnectionListRowModel.swift), and the type name falls back to the raw value in capitals, such as "MONGODB" (apple/TableProMobile/TableProMobile/Helpers/DatabaseType+Mobile.swift:49). - Tapping it opens the connection screen. A connection with an SSH tunnel opens the tunnel first, host key prompt and sign-in included (
apple/Packages/TableProCore/Sources/TableProDatabase/ConnectionManager.swift:60), and only then does the driver factory refuse the type (ConnectionManager.swift:81,IOSDriverFactory.swift:130). - The screen ends on "Driver Unavailable", "No driver available for database type: MongoDB" and "This build has no driver for that database type." (
apple/TableProMobile/TableProMobile/Helpers/AppError.swift:202), with a Retry button that can never succeed. - A
.tableprofile import does not warn either. It marks only type ids TablePro does not know at all (apple/TableProMobile/TableProMobile/Services/IOSConnectionImportService.swift:9), so a MongoDB or ClickHouse connection imports as if it would open.
Proposed solution
- Decide "can this device open it" once, from the driver factory's
supportedTypes(), and use it everywhere a connection is shown or opened. - In the connection list, show such a row dimmed with a short reason under it, such as "Opens on Mac only", the way a Mac socket connection already reads "Mac socket" (
apple/TableProMobile/TableProMobile/Helpers/ConnectionDetailFormatter.swift:16). Tapping it explains why instead of starting a connect. - Check the type before any network work, so no SSH tunnel, host key prompt or password prompt happens for a connection that cannot open.
- Keep the row editable, movable and deletable, and keep every field intact so it syncs back to the Mac unchanged.
- In the import sheet, mark these rows "Opens on Mac only" too.
- Use the real engine name (MongoDB, ClickHouse) instead of the capitalized raw value.
- Track drivers for the most used of these engines, MongoDB and ClickHouse first, as their own follow-up issues.
Done means: no connection in the list fails with "Driver Unavailable" after a tap, and a test covers the list model, the import sheet and the connect path for a type with no driver.
Alternatives considered
Today the user has to remember which connections are Mac only, or keep them out of iCloud with Local only on the Mac.
Platform
iOS
Related database type
N/A / General
Activity