(sds *client.SessionDataSet)
| 227 | } |
| 228 | |
| 229 | func printDataSet1(sds *client.SessionDataSet) { |
| 230 | columnNames := sds.GetColumnNames() |
| 231 | for _, value := range columnNames { |
| 232 | fmt.Printf("%s\t", value) |
| 233 | } |
| 234 | fmt.Println() |
| 235 | |
| 236 | for next, err := sds.Next(); err == nil && next; next, err = sds.Next() { |
| 237 | for _, columnName := range columnNames { |
| 238 | isNull, _ := sds.IsNull(columnName) |
| 239 | |
| 240 | if isNull { |
| 241 | fmt.Printf("%v\t\t", "null") |
| 242 | } else { |
| 243 | v, _ := sds.GetString(columnName) |
| 244 | fmt.Printf("%v\t\t", v) |
| 245 | } |
| 246 | } |
| 247 | fmt.Println() |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | func printDataSet2(sds *client.SessionDataSet) { |
| 252 | columnNames := sds.GetColumnNames() |
no test coverage detected
searching dependent graphs…