Iterator for query results.
| 36 | |
| 37 | // Iterator for query results. |
| 38 | type Iterator interface { |
| 39 | // Next advances the iterator to the next value, which will then be available through |
| 40 | // the Result method. It returns false if no further advancement is possible, or if an |
| 41 | // error was encountered during iteration. Err should be consulted to distinguish |
| 42 | // between the two cases. |
| 43 | Next(ctx context.Context) bool |
| 44 | // Results returns the current result. The type depends on the collation mode of the query. |
| 45 | Result() interface{} |
| 46 | // Err returns any error that was encountered by the Iterator. |
| 47 | Err() error |
| 48 | // Close the iterator and do internal cleanup. |
| 49 | Close() error |
| 50 | } |
| 51 | |
| 52 | // Collation of results. |
| 53 | type Collation int |
no outgoing calls
no test coverage detected