forked from ebhomengo/niki
1
0
Fork 0
niki/pkg/query_builder/mysql/pagination.go

10 lines
244 B
Go
Raw Normal View History

package mysqlquerybuilder
import (
"git.gocasts.ir/ebhomengo/niki/param"
)
func BuildPaginationQuery(pagination param.PaginationRequest) (string, []any) {
return "LIMIT ? OFFSET ?", []any{pagination.GetPageSize(), pagination.GetOffset()}
}