mongodb-cursor-pagination

Crates.iomongodb-cursor-pagination
lib.rsmongodb-cursor-pagination
version1.0.0-rc.1
sourcesrc
created_at2020-01-16 23:47:04.492803
updated_at2023-05-22 02:21:04.927509
descriptionProvides cursor based pagination for the native MongoDB driver in Rust.
homepage
repositoryhttps://github.com/Srylax/mongodb-cursor-pagination
max_upload_size
id199252
size92,167
Srylax (Srylax)

documentation

README

MongoDB Cursor Pagination

Crate Docs Build Status MIT licensed

Documentation
Examples

This package provides a cursor based pagination using the mongodb driver. Essentially instead of page based pagination you receive cursors to both the start and end of the result set so that you can ensure you get the next item, even if the data changes in between requests. That said, it also provides regular ole' page based pagination as well. If your options include skip and limit parameters then you'll do the page based. If you leave skip off or send a cursor, then it will use that instead (and ignore the skip parameter.)

It's based on the node.js module but written in Rust. You can read more about the concept on their blog post.

So far it only supports find. Search and aggregation will come when needed.

Commit count: 39

cargo fmt