Crates.io | gobang |
lib.rs | gobang |
version | 0.1.0-alpha.5 |
source | src |
created_at | 2021-06-22 19:57:06.378484 |
updated_at | 2021-09-15 11:36:01.266369 |
description | A cross-platform TUI database management tool written in Rust |
homepage | https://github.com/TaKO8Ki/gobang |
repository | https://github.com/TaKO8Ki/gobang |
max_upload_size | |
id | 413530 |
size | 243,574 |
gobang means a Japanese game played on goban, a go board. The appearance of goban looks like table structure. And I live in Kyoto, Japan. In Kyoto city, streets are laid out on a grid (We call it “goban no me no youna (碁盤の目のような)”). They are why I named this project "gobang".
If you’re using Homebrew or Linuxbrew, install the gobang formula:
$ brew install tako8ki/tap/gobang
If you already have a Rust environment set up, you can use the cargo install
command:
$ cargo install --version 0.1.0-alpha.5 gobang
PATH
environment variable$ gobang
$ gobang -h
USAGE:
gobang [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 |
The location of the file depends on your OS:
$HOME/.config/gobang/config.toml
$HOME/.config/gobang/config.toml
%APPDATA%/gobang/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"
[[conn]]
type = "postgres"
user = "root"
host = "localhost"
port = 5432
database = "bar"
[[conn]]
type = "sqlite"
path = "/path/to/baz.db"
Contributions, issues and pull requests are welcome!