https://github.com/robertazzopardi/d7s
Tui database client
https://github.com/robertazzopardi/d7s
Last synced: 5 months ago
JSON representation
Tui database client
- Host: GitHub
- URL: https://github.com/robertazzopardi/d7s
- Owner: robertazzopardi
- License: mit
- Created: 2025-07-13T22:13:16.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2026-02-04T01:17:05.000Z (5 months ago)
- Last Synced: 2026-02-04T13:30:36.306Z (5 months ago)
- Language: Rust
- Size: 244 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# d7s
A TUI database client for PostgreSQL and SQLite, built in Rust with [Ratatui](https://ratatui.rs) and inspired by [k9s](https://k9scli.io/).
## Why
After discovering k9s, I thought it had the perfect format for a database client and I wanted something simpler than the established solutions.
## Features
- **Multi-db Support** — currently supports PostgreSQL and SQLite, with more to come!
- **Connection management** — save, edit, and delete named connections.
- **Credential storage** — passwords are stored in the platform keyring (macOS Keychain, Windows Credential Manager, Linux Secret Service), or never saved and prompted everytime.
- **Database traversal** — navigate databases, schemas, tables, columns, and row data with keyboard-driven menus, supports vim.
- **SQL executor** — run arbitrary SQL queries and view results as a table.
- **Environment tagging** — label each connection as dev, staging, or prod.
## Install
### crates.io
Requires Rust stable (1.91.0 or later).
```sh
cargo install d7s
```
The `d7s` binary will be placed in `$CARGO_HOME/bin` (usually `~/.cargo/bin`), which should already be on your `PATH`.
### Building from source
Requires Rust stable (1.91.0 or later).
```sh
cargo build --release
```
The binary will be at `target/release/d7s`.
### Nix
A `flake.nix` is provided. Enter the development shell:
```sh
nix develop
```
Then use `just` for common tasks (`just --list`).
## Usage
If installed via `cargo install`, just run:
```sh
d7s
```
Or, if built from source:
```sh
cargo run --release
# or, after building:
./target/release/d7s
```