Repository navigation
Closed
Labels
Description
Problem
The iOS app has no saved queries, so the SQL a user keeps on the Mac is not there when they open the same connection on a phone.
Three paths drop them today:
- iCloud Sync. The Mac syncs saved queries and their folders as
SQLFavoriteandSQLFavoriteFolderrecords (apple/Packages/TableProCore/Sources/TableProSyncTransport/SyncRecordType.swift:9;features/icloud-sync.mdx, "Saved Queries: Yes"). The iOS pull reads only connections, groups and tags, and drops the rest (apple/TableProMobile/TableProMobile/Sync/IOSSyncCoordinator.swift:672).ios/index.mdxsays "SSH profiles, table favorites, saved queries, and app settings are skipped". - Import. A
.tableprofile's saved queries are left out: the import runs withsupportsSavedQueries: falseand no saved query store (apple/TableProMobile/TableProMobile/Services/IOSConnectionImportService.swift:17and:37), and the sheet says "This file also holds saved queries, which import only on a Mac." (apple/TableProMobile/TableProMobile/Views/MobileConnectionImportSheet.swift:130). - Export. A file exported on iOS never carries them (
apple/TableProMobile/TableProMobile/Services/IOSConnectionExportService.swift:17).
Proposed solution
- A Saved Queries list in the Query section: the connection's own queries and the global ones, in their folders, with search by name.
- Tapping one puts its SQL in the editor. It never runs on its own.
- Save the editor's text as a saved query, global or for this connection, from the Query menu. Rename, move and delete from the list.
- Pull and push
SQLFavoriteandSQLFavoriteFolderthrough the same sync as connections, with the Mac's rules (features/favorites.mdx): one keyword per connection, the older query keeps a contested keyword, the 900 KB limit, and version history and linked SQL folders staying on the Mac. - Import and export saved queries in
.tableprofiles, as the Mac does.
A first step can be read only: list and open the synced queries, with saving on iOS after it.
Done means: a query saved on the Mac appears on the iPhone after a sync and opens in the editor, and one saved on the iPhone appears on the Mac.
Alternatives considered
Copy the SQL out of the Mac by hand, through Notes or Universal Clipboard, and paste it into the iOS editor.
Platform
iOS
Related database type
N/A / General
Activity