multiple terminal client for data storage [kafka | mysql | postgresql | click house |redis]
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
LICENSE
README.md
config.go
kafka.go
klient.go
redis.go
sql.go

README.md

Klient

Features

Klient can be used as a terminal client with colorful output for several databases .

  1. Colorful output
  2. Simple command - Resue [FORMULA...] which can be stored in $USER_HOMEDIR/.klient.toml
  3. More databases
    • kafka
    • mysql | pgsql
    • postgresql
    • clickhouse
    • redis

Installation

linux

$ sudo wget -O /usr/bin/klient https://github.com/lubit/klient/releases/download/0.0.1/klient.linux.amd64

macos

$ sudo wget -O /usr/bin/klient https://github.com/lubit/klient/releases/download/0.0.1/klient.mac

Usage

$ klient [driver] [commands] [FORMULA...]

Exmaple

$ klient kafka produce -B 'localhost:9092' -T test

kafka-produce

$ klient kafka consume  -B 'localhost:9092' -T test  -G test-consumer-group

kafka-consume

TIPS

Omit [FORMULA...] parameters which were stored in $USER_HOMEDIR/.klient.toml

$ klient kafka consume

kafka-consume-without-params

$ klient kafka status  -B 'localhost:9092' -T test  -G test-consumer-group

kafka-status

$ klient mysql -H localhost -P 3306 -u root -p 12345 -e 'select *  from user'

mysql


Reference Driver

kafka: github.com/Shopify/sarama && github.com/bsm/sarama-cluster

mysql: github.com/go-sql-driver/mysql

postgresql: github.com/lib/pq

clickhouse: github.com/kshvakov/clickhouse

redis: github.com/garyburd/redigo/redis


Authors