Limit the number of records to be returned by this query.
(limit int)
| 34 | |
| 35 | // Limit the number of records to be returned by this query. |
| 36 | func (mq *ModelQuery) Limit(limit int) *ModelQuery { |
| 37 | mq.ctx.Limit = &limit |
| 38 | return mq |
| 39 | } |
| 40 | |
| 41 | // Offset to start from. |
| 42 | func (mq *ModelQuery) Offset(offset int) *ModelQuery { |
no outgoing calls
no test coverage detected