mirror of
https://github.com/documize/community.git
synced 2025-07-19 13:19:43 +02:00
Make storage providers generate row limit clause
This commit is contained in:
parent
8515a77403
commit
2ddd7ada9b
5 changed files with 36 additions and 0 deletions
|
@ -305,3 +305,8 @@ func (p PostgreSQLProvider) IsTrue() string {
|
|||
func (p PostgreSQLProvider) IsFalse() string {
|
||||
return "false"
|
||||
}
|
||||
|
||||
// RowLimit returns SQL for limiting number of rows returned.
|
||||
func (p PostgreSQLProvider) RowLimit(max int) string {
|
||||
return fmt.Sprintf("LIMIT %d", max)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue