sea-orm icon indicating copy to clipboard operation
sea-orm copied to clipboard

feat: allow an easier use of limit/offset

Open ctron opened this issue 1 year ago • 1 comments

This is a draft PR and it lacks some things to fix up before merging. I just want to understand if that's going the right direction.

PR Info

  • Closes https://github.com/SeaQL/sea-orm/discussions/2163

New Features

  • [x] Add an easier way working with limit & offset

ctron avatar Mar 19 '24 12:03 ctron

Right now, one can use page_size and start_page. However, there seems to be no simple way to use limit and offset.

The idea is to provide a simple way to set limit and offset, which is a more basic version. That could then (not part of this PR yet) be used to implement pagination on top of it.

ctron avatar May 02 '24 08:05 ctron