cmd

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: BSD-2-Clause Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Stdio = &cli.Stdio{
	Stdout: os.Stdout,
	Stderr: os.Stderr,
	Stdin:  os.Stdin,
}

Functions

func NewDriver

func NewDriver(name string) (*cmd.DatabaseDriver, error)

func PrintError

func PrintError(stderr io.Writer, err error)

func RunCallGRPC

func RunCallGRPC(stdio *cli.Stdio, endpoint string, fullMethod string, metadata []string) (code int)

func RunCallHTTP

func RunCallHTTP(stdio *cli.Stdio, endpointURL string, method http.Method, headers []string) (code int)

func RunCompare

func RunCompare(stdio *cli.Stdio, expectedJson string, actualJson string, showDiff bool, noSuperset bool) (code int)

func RunDump

func RunDump(stdio *cli.Stdio, databaseDriver string, connectionString string) (code int)

func RunInit

func RunInit(stdio *cli.Stdio, databaseDriver string, connectionString string) (code int)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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