MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / Limit

Method Limit

ent/setting_query.go:36–39  ·  view source on GitHub ↗

Limit the number of records to be returned by this query.

(limit int)

Source from the content-addressed store, hash-verified

34
35// Limit the number of records to be returned by this query.
36func (sq *SettingQuery) Limit(limit int) *SettingQuery {
37 sq.ctx.Limit = &limit
38 return sq
39}
40
41// Offset to start from.
42func (sq *SettingQuery) Offset(offset int) *SettingQuery {

Callers 4

FirstMethod · 0.95
FirstIDMethod · 0.95
OnlyMethod · 0.95
OnlyIDMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected