Documentation ¶
Index ¶
- func ConfigFile() string
- func Execute(ctx context.Context, conn *sql.DB, query string) ([]map[string]interface{}, []string, error)
- func JoinWords(words []string, deli string) string
- func Register(p Plugin)
- func Run() error
- func SetConfigFile(p string) error
- func SetCredentials(username, password, url string)
- func SetHistoryFile(p string) error
- func Word(str string) string
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(ctx context.Context, conn *sql.DB, query string) ([]map[string]interface{}, []string, error)
Execute a query and return array of mapped results
func SetConfigFile ¶
SetConfigFile sets the path for the config file, must be .json
func SetCredentials ¶
func SetCredentials(username, password, url string)
SetCredentials prepopulates creditials but does not save them to dist
func SetHistoryFile ¶
SetHistoryFile sets the history file to be used, call this before calling Run
Types ¶
Click to show internal directories.
Click to hide internal directories.