(sds *client.SessionDataSet)
| 681 | } |
| 682 | |
| 683 | func printDataSet1(sds *client.SessionDataSet) { |
| 684 | columnNames := sds.GetColumnNames() |
| 685 | for _, value := range columnNames { |
| 686 | fmt.Printf("%s\t", value) |
| 687 | } |
| 688 | fmt.Println() |
| 689 | |
| 690 | for next, err := sds.Next(); err == nil && next; next, err = sds.Next() { |
| 691 | for _, columnName := range columnNames { |
| 692 | isNull, _ := sds.IsNull(columnName) |
| 693 | |
| 694 | if isNull { |
| 695 | fmt.Printf("%v\t\t", "null") |
| 696 | } else { |
| 697 | v, _ := sds.GetString(columnName) |
| 698 | fmt.Printf("%v\t\t", v) |
| 699 | } |
| 700 | } |
| 701 | fmt.Println() |
| 702 | } |
| 703 | } |
| 704 | |
| 705 | func printDataSet2(sds *client.SessionDataSet) { |
| 706 | columnNames := sds.GetColumnNames() |
no test coverage detected
searching dependent graphs…