lazydb is currently in alpha
A cross-platform TUI database management tool written in Rust
Note: This project is a fork of TaKO8Ki/gobang
- Cross-platform support (macOS, Windows, Linux)
- Multiple Database support (MySQL, PostgreSQL, SQLite)
- Intuitive keyboard only control
- SQL editor
- Custom key bindings
- Custom theme settings
- Support the other databases
lazydb is designed for developers who want a lazy, effortless way to manage databases. The name reflects the philosophy of making database management as simple and intuitive as possible.
If you already have a Rust environment set up, you can use the cargo install
command:
cargo install lazydb
Clone the repository and build from source:
git clone https://github.com/fujis/lazydb.git
cd lazydb
cargo build --release
$ lazydb
$ lazydb -h
USAGE:
lazydb [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-c, --config-path <config-path> Set the config file
If you want to add connections, you need to edit your config file. For more information, please see Configuration.
Key | Description |
---|---|
h, j, k, l | Scroll left/down/up/right |
Ctrl + u, Ctrl + d | Scroll up/down multiple lines |
g , G | Scroll to top/bottom |
H, J, K, L | Extend selection by one cell left/down/up/right |
y | Copy a cell value |
←, → | Move focus to left/right |
c | Move focus to connections |
/ | Filter |
? | Help |
1, 2, 3, 4, 5 | Switch to records/columns/constraints/foreign keys/indexes tab |
Esc | Hide pop up |
The location of the file depends on your OS:
- macOS:
$HOME/.config/lazydb/config.toml
- Linux:
$HOME/.config/lazydb/config.toml
- Windows:
%APPDATA%/lazydb/config.toml
The following is a sample config.toml file:
[[conn]]
type = "mysql"
user = "root"
host = "localhost"
port = 3306
[[conn]]
type = "mysql"
user = "root"
host = "localhost"
port = 3306
password = "password"
database = "foo"
name = "mysql Foo DB"
[[conn]]
type = "postgres"
user = "root"
host = "localhost"
port = 5432
database = "bar"
name = "postgres Bar DB"
[[conn]]
type = "sqlite"
path = "/path/to/baz.db"
This project is built upon the excellent work of TaKO8Ki/gobang. We are grateful to Takayuki Maeda and all contributors to the original project for creating such a solid foundation for database management tools.
Contributions, issues and pull requests are welcome!