(sds *client.SessionDataSet)
| 249 | } |
| 250 | |
| 251 | func printDataSet2(sds *client.SessionDataSet) { |
| 252 | columnNames := sds.GetColumnNames() |
| 253 | for _, value := range columnNames { |
| 254 | fmt.Printf("%s\t", value) |
| 255 | } |
| 256 | fmt.Println() |
| 257 | |
| 258 | for next, err := sds.Next(); err == nil && next; next, err = sds.Next() { |
| 259 | for i := int32(0); i < int32(len(columnNames)); i++ { |
| 260 | isNull, _ := sds.IsNullByIndex(i) |
| 261 | |
| 262 | if isNull { |
| 263 | fmt.Printf("%v\t\t", "null") |
| 264 | } else { |
| 265 | v, _ := sds.GetStringByIndex(i) |
| 266 | fmt.Printf("%v\t\t", v) |
| 267 | } |
| 268 | } |
| 269 | fmt.Println() |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | func setStorageGroup(sg string) { |
| 274 | checkError(session.SetStorageGroup(sg)) |
no test coverage detected
searching dependent graphs…