Start returns a derivative query with the given start point.
(c Cursor)
| 268 | |
| 269 | // Start returns a derivative query with the given start point. |
| 270 | func (q *Query) Start(c Cursor) *Query { |
| 271 | q = q.clone() |
| 272 | if c.cc == nil { |
| 273 | q.err = errors.New("datastore: invalid cursor") |
| 274 | return q |
| 275 | } |
| 276 | q.start = c.cc |
| 277 | return q |
| 278 | } |
| 279 | |
| 280 | // End returns a derivative query with the given end point. |
| 281 | func (q *Query) End(c Cursor) *Query { |