commands

package
v0.0.0-...-1c3a706 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DbClient

type DbClient struct {
	ConnInfo *data.ConnInfo
	Log      *selog.Selog
	// contains filtered or unexported fields
}

func NewDbClient

func NewDbClient(l *selog.Selog) *DbClient

func (*DbClient) OpenConnection

func (c *DbClient) OpenConnection() error

OpenConnection opens connection, pings the DB. In case of any error while pinging, it returns error.

If there is no error after pinging the DB, this function takes input(cmds) to execute on the DB specified by the user. To see available cmds;

> help

Jump to

Keyboard shortcuts

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