Function
Functions are listed in the Functions section of the left sidebar. They are available for databases that support them, such as PostgreSQL, MySQL, MariaDB, and SQL Server; SQLite has no functions. Changes are kept locally until you press ⌘ + S1 to commit them to the server.
If you don't see the Functions section, click the settings button next to the search field at the top of the left sidebar and tick Settings > Show function section.
Create function
- Right-click the left sidebar and choose New > Function/Procedure, or click the arrow next to the + button at the bottom of the left sidebar and choose New Function/Procedure.
- Write the
CREATE FUNCTIONstatement in the editor. - Press
⌘ + Sto create the function.

Edit function
- Click the function in the left sidebar to open its definition.
- Edit the SQL code.
- Press
⌘ + Sto commit the change.

Delete function
- Right-click the function in the left sidebar and choose Delete..., or select it and press
Delete. - Press
⌘ + Sto commit the change.
-
On Windows and Linux, use
Ctrl + S. ↩︎