MCPcopy Create free account
hub / github.com/sql-machine-learning/sqlflow / runNormalStmt

Function runNormalStmt

go/executor/sql_stmt.go:25–30  ·  view source on GitHub ↗
(wr *pipe.Writer, slct string, db *database.DB)

Source from the content-addressed store, hash-verified

23)
24
25func runNormalStmt(wr *pipe.Writer, slct string, db *database.DB) error {
26 if isQuery(slct) {
27 return runQuery(wr, slct, db)
28 }
29 return runExec(wr, slct, db)
30}
31
32// TODO(weiguo): isQuery is a hacky way to decide which API to call:
33// https://golang.org/pkg/database/sql/#DB.Exec .

Callers 2

ExecuteQueryMethod · 0.85
TestNormalStmtFunction · 0.85

Calls 3

isQueryFunction · 0.85
runQueryFunction · 0.85
runExecFunction · 0.85

Tested by 1

TestNormalStmtFunction · 0.68