SeaQL / sea-orm

🐚 An async & dynamic ORM for Rust
https://www.sea-ql.org/SeaORM/
Apache License 2.0
7.03k stars 493 forks source link

feat: allow an easier use of limit/offset #2164

Open ctron opened 6 months ago

ctron commented 6 months ago

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

New Features

ctron commented 5 months ago

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.