-
Notifications
You must be signed in to change notification settings - Fork 70
Open
Description
I was writing some code that conditionally applies a LIMIT
and OFFSET
; and while testing ended up very confused because calling query.ToSring()
or query.ToSql()
did not apply my LIMIT
and OFFSET
. After grepping through the kallax code I realized that these aren't applied until the Store.Find
method is executed:
Lines 385 to 392 in 6e31900
columns, builder := q.compile() | |
if offset := q.GetOffset(); offset > 0 { | |
builder = builder.Offset(offset) | |
} | |
if limit := q.GetLimit(); limit > 0 { | |
builder = builder.Limit(limit) | |
} |
I was just wondering if these are supposed to be applied here, or if this should remain a concern of BaseQuery
.
Thanks!
Metadata
Metadata
Assignees
Labels
No labels