Write & reuse SQL
Share SQL through a team library
Publish named queries explicitly, review revisions, and let teammates load a shared script manually.
What this feature does
Sign in to a team library, review its scope, then publish only after checking the SQL content.
When to use it
Use this when a team intentionally wants to publish and reuse selected SQL through its account library.
Before you start
Sign in and reach the account service. Published SQL is readable by library members.
Default shortcuts
Team sharing uses explicit team-library actions; the editor save shortcut writes local saved history.
| Action | Windows / Linux | macOS | Focus and effect |
|---|---|---|---|
| Open Shared Team Library | No dedicated default | No dedicated default | Use the team entry in AI & Sql Editor / SQL Script Library; no dedicated default is assigned. |
| Publish, update, or download a team script | No dedicated default | No dedicated default | Choose the explicit role-appropriate action and handle publication prompts inside the team library; no automatic-publication shortcut is assigned. |
| Save SQL to saved history | Ctrl+S | ⌘+S | Focus the SQL Editor to save to its workspace saved history; this is separate from saving a .sql file or publishing a team script. |
- Settings → Shortcuts shows configurable bindings; customized keys take precedence. Fixed dialog keys and mouse gestures may be managed by their own controls.
- On macOS, ⌘ means Command and ⌥ means Option. Function keys may require Fn. Delete means forward delete (often Fn+⌫ on a compact Mac keyboard); use the menu when Insert is unavailable.
How to use it
- Sign in and open Shared Team Library.
- Create a library or join with an invitation code from its owner.
- Review the SQL for secrets, then explicitly publish and confirm it.
- A teammate refreshes the library and chooses Load Into Editor.
What to expect
The library lists the explicitly published SQL for eligible members to refresh and load.
Limits and safety
- Current members can read published SQL; the service does not redact credentials automatically.
- Publishing does not upload local history or automatically replace a teammate’s editor content.
If something goes wrong
- If the library cannot be opened, check sign-in state, team membership, service availability, and the account’s role.
- If publishing is rejected, verify the selected library and review the SQL for secrets; sharing must remain a deliberate user action.