I'm on Windows all day and constantly connecting to different databases to look at data, but after getting used to tools like DBeaver I've always found them slow to start and memory-hungry, and they choke when pulling a few hundred thousand rows. And every time I need to connect to Oracle I have to mess around installing a Client, which drives me nuts.
So I just wrote my own open-source desktop client in Rust using Zed's GPUI framework: Locus.
The core features all work now. Here's a quick rundown of the design decisions I focused on:
- Space-based environment isolation, borrowed from the Arc browser
I made the Dev, Staging, and Production connections and tabs into Spaces with different colors, switchable instantly with Ctrl + 1~9. The main point is to fix the pain of hopping between environments and accidentally editing the wrong database because you weren't paying attention. - Production safeguards against accidental writes
As soon as a connection is marked as Production, it's strictly read-only by default. If you really need to run a write or an update, you have to manually unlock it for a limited time and confirm each statement, and a full audit log is recorded automatically underneath. - Native support for multiple databases & streaming queries
Currently supports MySQL / MariaDB, PostgreSQL, SQLite, Redis, SQL Server, and Oracle (built in, no separate Oracle Client install needed). Query results stream in and render as they arrive, and hitting cancel actually sends an interrupt to the database server, so the UI never freezes.
The project is open source under AGPL-3.0, and all connection passwords are stored via the local Windows Credential Manager — no plaintext on disk.
平时在 Windows 下经常要连各种数据库查数据,但用惯了 DBeaver 这类工具后,一直觉得启动太慢、吃内存,拉几十万行数据时容易卡顿;每次为了连个 Oracle 还得折腾半天装 Client,心里挺烦躁的。
干脆自己用 Rust 加上 Zed 的 GPUI 框架,写了这个开源的桌面客户端: Locus 。
目前的核心功能都已经跑通了,简单介绍下我做的几个重点设计:
- 借鉴 Arc 浏览器的 Space 环境隔离
我把 Dev、Staging、Production 的连接和标签页做成了不同颜色的 Space,支持 Ctrl + 1~9 快捷键秒切。主要是为了解决平时多环境来回切时,一不留神看走眼改错库的痛点。 - 生产环境(Production)防误删机制
只要把连接标记为 Production,默认就是严格只读的。如果确实需要执行写入或修改,必须手动限时解锁并逐条确认,同时底层会自动记录完整的 Audit Log。 - 多库原生支持 & 流式查询
目前支持 MySQL / MariaDB、PostgreSQL、SQLite、Redis、SQL Server 和 Oracle(内置支持,无需额外装 Oracle Client)。查询结果是边传输边流式展示的,点取消查询时也会真正向数据库服务端发送中断指令,不会把前端卡死。
项目采用 AGPL-3.0 协议开源,所有连接密码都直接调用本地的 Windows 凭据管理器存储,不落明文。
GitHub 地址: https://github.com/sao-coding/locus
Translated by AI from 简体中文Original (简体中文)
快银 VPN,一键连接全球节点,线路稳定、延迟低。支持 Windows、macOS 等多平台,TUN 全局模式覆盖全部应用流量。无需复杂配置,下载即用。
3 replies
Sort order