dbs

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2021 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, printCmd bool) error

func MysqlDump

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

func Psql

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

func Redis

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

Types

type DSN added in v1.0.1

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

Data Source Name

func ParseDSN added in v1.0.1

func ParseDSN(urlStr string) DSN

func (DSN) MysqlFlags added in v1.0.1

func (dsn DSN) MysqlFlags() []string

func (DSN) RedisFlags added in v1.0.1

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