Skip to content

Saved queries on iPhone and iPad, synced with the Mac #3634

Closed

Description

@datlechin

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 SQLFavorite and SQLFavoriteFolder records (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.mdx says "SSH profiles, table favorites, saved queries, and app settings are skipped".
  • Import. A .tablepro file's saved queries are left out: the import runs with supportsSavedQueries: false and no saved query store (apple/TableProMobile/TableProMobile/Services/IOSConnectionImportService.swift:17 and :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 SQLFavorite and SQLFavoriteFolder through 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 .tablepro files, 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

  1. added
    enhancement
    platform-ios
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementplatform-ios

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions