Re: Re: [go-nuts] How go-mysql-driver get data? "get all data at a time" or "only get a batch when we call rows.Next"?

2019-06-26 Thread sa517067
Get all data in the first Next() call? or only get a batch? At2019-06-26 21:19:07,Henrik Johanssondahankzter@gmail.comwrote: I am pretty sure it's the latter case with lazy loading when needed during the Next() call. On Wed, Jun 26, 2019 at 2:59 PM 杜沁园 wrote: When we operate with mysql

[go-nuts] how to get file's current offset

2019-04-18 Thread sa517067
I want to know file's current read offset after open a file, but I can not found related API. f, err := os.Open("/tmp/") if err != nil{ panic(err) } ... // some read operation // how can I get f's current read