You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux: functions, procedures, sequences and triggers in the sidebar #3960
linux/ROADMAP.md, Backlog, "Browse, edit and structure":
Functions, procedures, sequences and triggers in the sidebar. The drivers already list the first three.
The Linux sidebar shows only what the grid can page through. The PostgreSQL, MySQL, MariaDB, SQL Server and ClickHouse drivers already list functions, procedures and sequences, but the sidebar drops them. No driver lists triggers, and no driver can read the SQL that defines any of these objects.
Proposed solution
Drivers list triggers with the table each one fires on: PostgreSQL, MySQL, MariaDB, SQL Server and SQLite. Engines without triggers list none.
A new driver call reads the definition of a function, procedure, sequence or trigger. Every overload of a PostgreSQL function name is shown.
The sidebar lists these objects in their schema, after the tables and views, each kind with its own icon and spoken kind. The search finds them, and a trigger is also found by its table's name.
Opening one shows its definition, read-only, in a dialog with a source view. The dialog offers Copy and Open in Editor, for when the user does want to change it.
Tests against the real engines, ignored with requires docker, cover the listing and the definitions.
Alternatives considered
A tab per definition. A read-only dialog needs no new tab kind and no saved workspace state, and Open in Editor covers editing.
Kind folders under each schema. The sidebar is one flat list per schema today. Grouping by kind inside it keeps the existing search and selection model.
Activity