No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Zane Dufour 7b1b5f7eba
Document name config field (#165)
hi, thought it would be worth using `name` in a couple of the example config fields

This would require a new release though, since the [latest release](https://github.com/TaKO8Ki/gobang/tree/v0.1.0-alpha.5) predates #105 

Thanks for the cool project :)
2023-01-25 14:06:59 +09:00
.github Create PULL_REQUEST_TEMPLATE.md (#131) 2021-11-03 15:30:38 +09:00
database-tree v0.1.0-alpha.5 (#112) 2021-09-15 20:14:32 +09:00
resources Filter completion (#88) 2021-09-12 15:50:59 +09:00
src adding help and README for exit pop up key (#144) 2022-06-24 17:47:31 +09:00
.gitignore Refactor components (#12) 2021-07-08 23:08:04 +09:00
Cargo.lock Create PropertiesComponent and redesign layout (#128) 2021-10-09 16:03:52 +09:00
Cargo.toml Create PropertiesComponent and redesign layout (#128) 2021-10-09 16:03:52 +09:00
LICENSE Create LICENSE (#64) 2021-09-07 19:30:38 +09:00
README.md Document name config field (#165) 2023-01-25 14:06:59 +09:00
sample.toml Add SQL Editor component (#84) 2021-10-08 01:30:13 +09:00

gobang

gobang is currently in alpha

A cross-platform TUI database management tool written in Rust

github workflow status crates

gobang

Features

  • Cross-platform support (macOS, Windows, Linux)
  • Multiple Database support (MySQL, PostgreSQL, SQLite)
  • Intuitive keyboard only control

TODOs

  • SQL editor
  • Custom key bindings
  • Custom theme settings
  • Support the other databases

What does "gobang" come from?

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".

Installation

With Homebrew (Linux, macOS)

If youre using Homebrew or Linuxbrew, install the gobang formula:

brew install tako8ki/tap/gobang

On Windows

If you're a Windows Scoop user, then you can install gobang from the official bucket:

scoop install gobang

On NixOS

If you're a Nix user, you can install gobang from nixpkgs:

$ nix-env --install gobang

On Archlinux

If you're an Archlinux user, you can install gobang from AUR:

paru -S gobang-bin

On NetBSD

If you're a NetBSD user, then you can install gobang from pkgsrc:

pkgin install gobang

With Cargo (Linux, macOS, Windows)

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

From binaries (Linux, macOS, Windows)

Usage

$ 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.

Keymap

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

Configuration

The location of the file depends on your OS:

  • macOS: $HOME/.config/gobang/config.toml
  • Linux: $HOME/.config/gobang/config.toml
  • Windows: %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"
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"

Contribution

Contributions, issues and pull requests are welcome!