Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

593 B
Raw Blame
/**
 * Whether clicking a result-run tab should toggle that run's pin. Pinning on
 * click keeps the result from being replaced by the next query (#9975), users
 * who always want the latest result can disable it (#12381), and clicking a
 * pinned run unpins it so removing a pin no longer needs the context menu
 * (#13306). Disabling the option keeps clicks selection-only; explicit pins
 * from the context menu still work.
 */
export function shouldPinResultRunOnClick(run: { pinned?: boolean } | null | undefined, pinOnClick: boolean): boolean {
  return !!run && pinOnClick !== false;
}