klient

command module
v0.0.0-...-fa66ad8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2019 License: GPL-3.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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 -u root -p 12345

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址