dbs

package
v0.0.0-...-d31700d Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cmds

func Cmds() []*cobra.Command

func Mongo

func Mongo(env, key string, printCmd bool) error

func Mysql

func Mysql(env, key string, lessPager, printCmd bool) error

func MysqlDump

func MysqlDump(env, key string, printCmd bool) error

func Psql

func Psql(env, key string, lessPager, printCmd bool) error

func Redis

func Redis(env, key string, printCmd bool) error

Types

type DSN

type DSN struct {
	Host, Port, User, Password, DB string
}

Data Source Name

func ParseDSN

func ParseDSN(urlStr string) DSN

func (DSN) MysqlFlags

func (dsn DSN) MysqlFlags() []string

func (DSN) RedisFlags

func (dsn DSN) RedisFlags() []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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