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
Show DDL in an editor, not one truncated grid cell #800
Right-click customers and pick Show DDL. A new dirty "Untitled Query" tab opens containing SHOW CREATE TABLE \shop`.`customers`. The result grid has two columns, and the DDL sits in one ellipsized cell: CREATE TABLE `customers` ( `id` int unsigned NOT NU…`.
Views (Show DDL) and procedures and functions (View DDL) behave the same way.
Expand Triggers and single-click orders_before_update twice. Each click opens another identical "Untitled Query" tab, and the trigger body is split across grid columns. A single click on an event does the same.
Cause
src/components/schema/SchemaTree.tsx:242-246 (openDdlTab) runs SHOW CREATE … as a query. It is called at :629, :781, :855, :931, :986, :1000, :1058 and :1072. api.getViewDdl and api.getTriggerDdl already exist and are never called.
Fix
Open a read-only DDL view, one tab per object and reused on repeat, filled from getTableDdl, getViewDdl, getTriggerDdl and getRoutineDdl.
Activity
feat(schema): show DDL in a read-only editor tab
release: 1.4.0 (#871)