We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d76540a commit a37e609Copy full SHA for a37e609
mysql/resultset.go
@@ -79,13 +79,17 @@ func (r *Resultset) Reset(fieldsCount int) {
79
}
80
81
82
+// RowNumber is returning the number of rows in the Resultset
83
+// For a nil ResultSet 0 is returned
84
func (r *Resultset) RowNumber() int {
85
if r == nil {
86
return 0
87
88
return len(r.Values)
89
90
91
+// ColumnNumber is returning the number of fields in the Resultset
92
93
func (r *Resultset) ColumnNumber() int {
94
95
0 commit comments