如何在axum、diesel和postgresql技术栈中实现分页查询
最近在用axum,diesel,postgresql写后台管理系统,在写分页查询时卡住了,前来求教。参考这里写的:https://github.com/diesel-rs/diesel/blob/master/examples/postgres/advanced-blog-cli/src/pagination.rs 这是model层employee的分页查询函数 pub(crate) fn...
在使用axum、diesel和postgresql开发后台管理系统时,遇到分页查询问题。参考diesel示例,编写了employee的分页查询函数,利用自定义的Paginate特性和Paginated结构体实现分页功能。