(wr *pipe.Writer, slct string, db *database.DB)
| 23 | ) |
| 24 | |
| 25 | func 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 . |