<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: sao-coding</title>
    <description>The latest articles on DEV Community by sao-coding (@lwhx).</description>
    <link>https://dev.to/lwhx</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4269153%2Fc7bf3b32-5542-4bd9-bf81-ac48598b54c6.jpg</url>
      <title>DEV Community: sao-coding</title>
      <link>https://dev.to/lwhx</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lwhx"/>
    <language>en</language>
    <item>
      <title>Locus: A Lightweight, Native Database Client Built with Rust and GPUI</title>
      <dc:creator>sao-coding</dc:creator>
      <pubDate>Fri, 27 Nov 2026 14:17:32 +0000</pubDate>
      <link>https://dev.to/lwhx/locus-a-lightweight-native-database-client-built-with-rust-and-gpui-pai</link>
      <guid>https://dev.to/lwhx/locus-a-lightweight-native-database-client-built-with-rust-and-gpui-pai</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqnmfczx0hv97tx734nx5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fqnmfczx0hv97tx734nx5.png" alt="Locus" width="800" height="499"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you work with databases on Windows regularly, you probably know the struggle.&lt;/p&gt;

&lt;p&gt;I've used tools like DBeaver for a long time, but I've always felt they were a bit too heavy for everyday use. Slow startup times, high memory consumption, and UI freezes when dealing with hundreds of thousands of rows can get frustrating.&lt;/p&gt;

&lt;p&gt;And don't even get me started on setting up Oracle Client just to connect to an Oracle database.&lt;/p&gt;

&lt;p&gt;Eventually, I decided to build something of my own.&lt;/p&gt;

&lt;p&gt;Meet Locus — an open-source desktop database client built with Rust and Zed's GPUI framework.&lt;/p&gt;

&lt;p&gt;The core features are already working, and I'd like to share some of the key design decisions behind the project.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Space-based Environment Isolation, Inspired by Arc Browser
One of the biggest pain points when working with multiple databases is switching between Dev, Staging, and Production environments.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;It's surprisingly easy to lose track of which environment you're currently working in — and one wrong click can cause serious trouble.&lt;/p&gt;

&lt;p&gt;Locus introduces a Space-based workflow inspired by Arc Browser.&lt;/p&gt;

&lt;p&gt;Each environment gets its own color-coded Space.&lt;br&gt;
Connections and tabs are organized within their respective Spaces.&lt;br&gt;
Use Ctrl + 1~9 to switch between Spaces instantly.&lt;br&gt;
The goal is simple: make it visually obvious which environment you're working in and reduce the risk of accidentally modifying the wrong database.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Production Safety: Read-Only by Default
Production databases deserve extra protection.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Any connection marked as Production is automatically placed in strict read-only mode by default.&lt;/p&gt;

&lt;p&gt;If you really need to execute write operations or modify data, you must:&lt;/p&gt;

&lt;p&gt;Manually unlock write access.&lt;br&gt;
Set a time-limited unlock period.&lt;br&gt;
Confirm write operations individually.&lt;br&gt;
On top of that, Locus automatically records a complete Audit Log of these operations.&lt;/p&gt;

&lt;p&gt;The idea is to add an extra layer of protection against accidental changes to production data.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Native Multi-Database Support &amp;amp; Streaming Queries
Locus currently supports:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;MySQL / MariaDB&lt;br&gt;
PostgreSQL&lt;br&gt;
SQLite&lt;br&gt;
Redis&lt;br&gt;
SQL Server&lt;br&gt;
Oracle&lt;br&gt;
Oracle connectivity is built in, so there's no need to install a separate Oracle Client.&lt;/p&gt;

&lt;p&gt;Another important design decision is streaming query results.&lt;/p&gt;

&lt;p&gt;Instead of waiting for the entire result set to load before displaying anything, Locus streams results as they arrive from the database.&lt;/p&gt;

&lt;p&gt;This makes working with large datasets much more responsive.&lt;/p&gt;

&lt;p&gt;Query cancellation is also handled properly: when you cancel a query, Locus sends a cancellation request to the database server instead of merely stopping the frontend UI from waiting.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Security &amp;amp; Open Source
A few more things worth mentioning:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Rust-powered: Built with Rust and Zed's GPUI framework.&lt;br&gt;
Secure credential storage: Database passwords are stored using the native Windows Credential Manager, never in plaintext.&lt;br&gt;
Open source: Licensed under AGPL-3.0.&lt;br&gt;
What's Next?&lt;br&gt;
Locus is still under active development, and there's plenty of room for improvement.&lt;/p&gt;

&lt;p&gt;If you're also frustrated with heavyweight database clients and want something lighter and more responsive, I'd love for you to give it a try.&lt;/p&gt;

&lt;p&gt;GitHub: &lt;a href="https://github.com/sao-coding/locus" rel="noopener noreferrer"&gt;https://github.com/sao-coding/locus&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Feedback, bug reports, and feature suggestions are always welcome! Feel free to leave a comment below or open an Issue on GitHub.&lt;/p&gt;

&lt;p&gt;And if you find Locus useful, a GitHub Star would mean a lot. ⭐&lt;/p&gt;

&lt;p&gt;Thanks for checking it out!&lt;/p&gt;

</description>
      <category>database</category>
      <category>opensource</category>
      <category>rust</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
