#limit

sql_paginatorr

A simple utility for calculating offset and limits for SQL Queries

3 releases

0.1.2 Aug 28, 2023
0.1.1 Aug 22, 2023
0.1.0 Aug 22, 2023

#60 in #limit

Download history 12/week @ 2024-07-29 22/week @ 2024-09-23 36/week @ 2024-09-30 3/week @ 2024-10-07

61 downloads per month
Used in wp_query_rs

MIT license

4KB
76 lines

About this Crate

This is a simple utility for SQL queries to calculate the offset and limit.

Disclaimer

The author takes no responsibility for any bugs that occur from the use of this crate.

License

MIT

Usage

let LimitOffsetPair { limit, offset } = sql_paginatorr::for_page(3, 10); // 40, 30

No runtime deps