step

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStdout

func GetStdout(f func() error) (out string, e error)

GetStdout hooks stdout and stderr, it collects stderr, stdout, and logs been generated during func f's execution, and returns them along with f's error

func Render

func Render(rsp interface{}, table tablewriter.TableWriter, isTerminal, it2Check bool) error

Render output according to calling environment

func RunSQLProgramAndPrintResult

func RunSQLProgramAndPrintResult(sqlStmt string, modelDir string, session *pb.Session, table tablewriter.TableWriter, isTerminal, it2Check bool) error

RunSQLProgramAndPrintResult execute SQL statement and print the logs and select result TODO(yancey1989): more meanful argument isTerminal and it2Check

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