#sql-query #limit #sql #offset

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

#41 in #offset

23 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