Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStdout ¶
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.
Click to show internal directories.
Click to hide internal directories.