Giter Club home page Giter Club logo

gate's Introduction

gate

gate is currently in alpha

A cross-platform TUI database management tool written in Rust

github workflow status

gate

Features

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

TODOs

  • Full Support to MSSQL
  • SQL editor
  • Custom key bindings
  • Custom theme settings
  • Support other databases

Usage

$ gate
$ gate -h
USAGE:
    gate [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/gate/config.toml
  • Linux: $HOME/.config/gate/config.toml
  • Windows: %APPDATA%/gate/config.toml

The following is a sample config.toml file:

[[conn]]
type = "mysql"
host = "localhost"
port = 3306
user = "root"
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 = "mssql"
user = "root"
host = "localhost"
port = 1433
database = "bar"
name = "mssql Foo DB"

[[conn]]
type = "sqlite"
path = "/path/to/bar.db"

Contribution

Contributions, issues and pull requests are welcome!

gate's People

Contributors

tako8ki avatar akrista avatar utam0k avatar codingcoffee avatar boozec avatar sho0126hiro avatar znd4 avatar kyoto7250 avatar mi-wada avatar susiyaki avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.