Shared Library
The Shared Library lets your team share SQL queries through Git repositories. Everyone works from the same collection of queries, with full version control and conflict resolution.
Adding a repository
Section titled “Adding a repository”- Open the Manage panel from the sidebar.
- Click Add Repository.
- Enter the remote URL (HTTPS or SSH).
- Choose a branch (defaults to
main). - Provide credentials if required.
Authentication
Section titled “Authentication”- HTTPS — username and password, or a personal access token
- SSH — select your SSH key, with optional passphrase
Credentials are stored securely in your system keyring.
Query format
Section titled “Query format”Shared queries are .sql files with YAML frontmatter:
---name: Active users last 30 daysdescription: Find users who logged in recentlydatabase: postgresqltags: [users, analytics]parameters: - name: days type: integer default: 30---SELECT * FROM usersWHERE last_login > NOW() - INTERVAL '{{days}} days';Folder structure in the repository is preserved, so you can organize queries into directories by team, project, or topic.
Sync status
Section titled “Sync status”Each repository shows its current sync state:
- Synced — local and remote match
- Ahead — you have unpushed changes
- Behind — the remote has new changes
- Diverged — both local and remote have changed
- Error — sync failed (check credentials or network)
The last sync timestamp is displayed alongside the status.
Pushing and pulling
Section titled “Pushing and pulling”- Pull — fetch the latest changes from the remote
- Push — send your local changes to the remote
When conflicts occur, Seaquel provides a 3-way merge editor so you can resolve differences without leaving the app. Modified and untracked files are highlighted before you push.
Browsing shared queries
Section titled “Browsing shared queries”Use the Manage panel to browse, search, and open shared queries. Click any query to load it into a new tab.