(host, port, username, password, type_ string)
| 26 | return db, true |
| 27 | } |
| 28 | func SqlLogin(host, port, username, password, type_ string) bool { |
| 29 | db, isLogin := login(host, port, username, password, type_) |
| 30 | if isLogin { |
| 31 | defer db.Close() |
| 32 | return true |
| 33 | } |
| 34 | return false |
| 35 | } |
| 36 | func SqlQuery(host, port, username, password, type_, sql string) []interface{} { |
| 37 | var result []interface{} |
| 38 |