Close closes the Rows, preventing further enumeration. If Next returns false, the Rows are closed automatically and it will suffice to check the result of Err. Close is idempotent and does not affect the result of Err.
()
| 268 | // false, the Rows are closed automatically and it will suffice to check the |
| 269 | // result of Err. Close is idempotent and does not affect the result of Err. |
| 270 | func (rs *Rows) Close() error { |
| 271 | return rs.rows.Close() |
| 272 | } |
| 273 | |
| 274 | // Next prepares the next result row for reading with the Scan method. It |
| 275 | // returns true on success, or false if there is no next result row or an error |