feat(desktop): add DDL shortcut and grid row delete action

This commit is contained in:
jean authored and GitHub committed 2026-08-04 13:01:50 +08:00
1 parent 70db5be257
commit 44784d664c
19 files changed
+157 -4

No files matched your search

@@ -0,0 +1,9 @@
import type { TreeNode } from "@/types/database";
/**
* 侧边栏中支持“查看 DDL”的节点类型,与右键菜单的
* “查看 DDL”菜单项可见条件保持一致。
*/
export function sidebarNodeSupportsDdlView(node: TreeNode): boolean {
return node.type === "table" || node.type === "view" || node.type === "materialized_view";
}