1
This commit is contained in:
parent
30a7e2a6ea
commit
2d79f0c481
@ -9,6 +9,12 @@ type DataSet struct {
|
||||
rows *sql.Rows
|
||||
columns []string
|
||||
values []interface{}
|
||||
numOfReaded int64
|
||||
}
|
||||
|
||||
//已读取函数(调用Next成功的次数)
|
||||
func (this *DataSet) NumOfReaded() int64 {
|
||||
return this.numOfReaded
|
||||
}
|
||||
|
||||
func (this *DataSet) Next() bool {
|
||||
@ -16,6 +22,7 @@ func (this *DataSet) Next() bool {
|
||||
if !ret {
|
||||
return ret
|
||||
}
|
||||
this.numOfReaded += 1
|
||||
this.GetColumns()
|
||||
this.values = []interface{}{}
|
||||
for i := 0; i < len(this.columns); i++ {
|
||||
|
Loading…
x
Reference in New Issue
Block a user