Iterator is an interface to iterate over the result of a sql query and scan each row one at a time instead of getting all into one slice. The principe is similar to the standard sql.Rows type.
| 9 | // and scan each row one at a time instead of getting all into one slice. |
| 10 | // The principe is similar to the standard sql.Rows type. |
| 11 | type Iterator interface { |
| 12 | Next() bool |
| 13 | Scan(interface{}) error |
| 14 | Close() error |
| 15 | Err() error |
| 16 | } |
| 17 | |
| 18 | // recordMeta holds target struct's reflect metadata cache |
| 19 | type recordMeta struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…