@@ -29,8 +29,8 @@ import (
2929
3030type ResultRow struct {
3131 result * Result
32- index uint64 `json:"Index"` // 0, 1, ... rows-1
33- columns []Value `json:"ColumnValues"`
32+ Index uint64 `json:"Index"` // 0, 1, ... rows-1
33+ Columns []Value `json:"ColumnValues"`
3434}
3535
3636// ToJSON returns a JSON representation of this query result row.
@@ -42,7 +42,7 @@ func (this *ResultRow) IsFirst() bool {
4242 case this .result .GetNumberOfRows () < 1 :
4343 return false
4444 default :
45- return this .index == 0
45+ return this .Index == 0
4646 }
4747}
4848
@@ -52,7 +52,7 @@ func (this *ResultRow) IsLast() bool {
5252 case this .result .GetNumberOfRows () < 1 :
5353 return false
5454 default :
55- return this .index == this .result .GetNumberOfRows ()- 1
55+ return this .Index == this .result .GetNumberOfRows ()- 1
5656 }
5757}
5858
@@ -62,7 +62,7 @@ func (this *ResultRow) IsEOF() bool {
6262 case this .result .GetNumberOfRows () < 1 :
6363 return true
6464 default :
65- return this .index >= this .result .GetNumberOfRows ()
65+ return this .Index >= this .result .GetNumberOfRows ()
6666 }
6767}
6868
@@ -78,22 +78,22 @@ func (this *ResultRow) Rewind() *ResultRow {
7878
7979// Next fetches the next row in this query result and returns it, otherwise if there is no next row, nil is returned.
8080func (this * ResultRow ) Next () * ResultRow {
81- switch row , err := this .result .GetRow (this .index + 1 ); {
81+ switch row , err := this .result .GetRow (this .Index + 1 ); {
8282 case err != nil :
8383 return nil
8484 default :
8585 return row
8686 }
8787}
8888
89- func (this * ResultRow ) GetNumberOfColumns () uint64 { return uint64 (len (this .columns )) }
89+ func (this * ResultRow ) GetNumberOfColumns () uint64 { return uint64 (len (this .Columns )) }
9090
9191func (this * ResultRow ) GetValue (Column uint64 ) (* Value , error ) {
9292 switch {
9393 case Column >= this .GetNumberOfColumns ():
9494 return nil , errors .New ("Column index out of bounds" )
9595 default :
96- return & this .columns [Column ], nil
96+ return & this .Columns [Column ], nil
9797 }
9898}
9999
@@ -211,37 +211,37 @@ func (this *ResultRow) IsText(Column uint64) bool {
211211// GetStringValue returns the contents in column Column of this query result row as string.
212212// The Column index is an unsigned int in the range of 0...GetNumberOfColumns() - 1.
213213func (this * ResultRow ) GetString (Column uint64 ) (string , error ) {
214- return this .result .GetStringValue (this .index , Column )
214+ return this .result .GetStringValue (this .Index , Column )
215215}
216216
217217// GetInt32Value returns the contents in column Column of this query result row as int32.
218218// The Column index is an unsigned int in the range of 0...GetNumberOfColumns() - 1.
219219func (this * ResultRow ) GetInt32 (Column uint64 ) (int32 , error ) {
220- return this .result .GetInt32Value (this .index , Column )
220+ return this .result .GetInt32Value (this .Index , Column )
221221}
222222
223223// GetInt64Value returns the contents in column Column of this query result row as int64.
224224// The Column index is an unsigned int in the range of 0...GetNumberOfColumns() - 1.
225225func (this * ResultRow ) GetInt64 (Column uint64 ) (int64 , error ) {
226- return this .result .GetInt64Value (this .index , Column )
226+ return this .result .GetInt64Value (this .Index , Column )
227227}
228228
229229// GetFloat32Value returns the contents in column Column of this query result row as float32.
230230// The Column index is an unsigned int in the range of 0...GetNumberOfColumns() - 1.
231231func (this * ResultRow ) GetFloat32 (Column uint64 ) (float32 , error ) {
232- return this .result .GetFloat32Value (this .index , Column )
232+ return this .result .GetFloat32Value (this .Index , Column )
233233}
234234
235235// GetFloat64Value returns the contents in column Column of this query result row as float64.
236236// The Column index is an unsigned int in the range of 0...GetNumberOfColumns() - 1.
237237func (this * ResultRow ) GetFloat64 (Column uint64 ) (float64 , error ) {
238- return this .result .GetFloat64Value (this .index , Column )
238+ return this .result .GetFloat64Value (this .Index , Column )
239239}
240240
241241// GetSQLDateTime parses this query result value in column Column as an SQL-DateTime and returns its value.
242242// The Column index is an unsigned int in the range of 0...GetNumberOfColumns() - 1.
243243func (this * ResultRow ) GetSQLDateTime (Column uint64 ) (time.Time , error ) {
244- return this .result .GetSQLDateTime (this .index , Column )
244+ return this .result .GetSQLDateTime (this .Index , Column )
245245}
246246
247247////////
0 commit comments