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。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
/**
* Parse text typed or pasted into the desktop file-path input into a list of
* file paths. Entries are separated by newlines or ";" (the same separator the
* input uses to display several selected files). Surrounding whitespace and one
* pair of wrapping quotes are stripped, since Windows "Copy as path" quotes paths.
*/
export function parseSqlFilePathInput(text: string): string[] {
return text
.split(/[\r\n;]+/)
.map((item) =>
item
.trim()
.replace(/^(["'])(.*)\1$/, "$2")
.trim(),
)
.filter(Boolean);
}