Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/go-pg/pg
/ Limit
Method
Limit
orm/query.go:739–742 ·
view source on GitHub ↗
(n int)
Source
from the content-addressed store, hash-verified
737
}
738
739
func
(q *Query) Limit(n int) *Query {
740
q.limit = n
741
return
q
742
}
743
744
func
(q *Query) Offset(n int) *Query {
745
q.offset = n
Callers
11
BenchmarkQueryRowsGopgORM
Function · 0.80
BenchmarkModelHasOneGopg
Function · 0.80
BenchmarkModelHasManyGopg
Function · 0.80
BenchmarkModelHasMany2ManyGopg
Function · 0.80
ExampleDB_Model_selectSomeColumns
Function · 0.80
ExampleDB_Model_selectSomeColumnsIntoVars
Function · 0.80
ExampleDB_Model_selectAndCount
Function · 0.80
db_test.go
File · 0.80
First
Method · 0.80
Last
Method · 0.80
select_test.go
File · 0.80
Calls
no outgoing calls
Tested by
7
BenchmarkQueryRowsGopgORM
Function · 0.64
BenchmarkModelHasOneGopg
Function · 0.64
BenchmarkModelHasManyGopg
Function · 0.64
BenchmarkModelHasMany2ManyGopg
Function · 0.64
ExampleDB_Model_selectSomeColumns
Function · 0.64
ExampleDB_Model_selectSomeColumnsIntoVars
Function · 0.64
ExampleDB_Model_selectAndCount
Function · 0.64