mysql

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const ViewShardHeader = "database"

Variables

This section is empty.

Functions

func Completer

func Completer(in prompt.Document) []prompt.Suggest

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(configPath string) (*Client, error)

func (*Client) Disconnect

func (c *Client) Disconnect()

func (*Client) Executor

func (c *Client) Executor(query string)

type Config

type Config struct {
	Databases      []DBConfig
	DatabaseCommon DBConfigCommon
}

type DBConfig

type DBConfig struct {
	Database string
	Host     string
	Port     int
	User     string
	Password string
}

type DBConfigCommon

type DBConfigCommon struct {
	User     string
	Password string
}

Jump to

Keyboard shortcuts

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