Comments (3)
Could you please provide more context on where is bug?
Regex is used to calculate the latest index and it's used to correctly add arguments to query.
Looks like it's can be simplified, with putting limit and offset inside query instead of passing it as fetch arguments.
from fastapi-pagination.
I've checked better the code and it works as expected
Sorry for the misunderstanding
from fastapi-pagination.
No worries, actually after looking at code again I have realized that it can be simplified, so thank you for this issue)
from fastapi-pagination.
Related Issues (20)
- How to paginate raw SQLAlchemy query HOT 1
- 0.12.20 breaks code that uses fastapi_pagination.ext.sqlalchemy.paginate_query HOT 3
- Add query params into the Page HOT 7
- CustomizedPage in pytest returns "RuntimeError: Use params or add_pagination" HOT 4
- Using Python reserved keyword for parameter alias causes error on start up HOT 5
- Using add_pagination breaks the custom OpenAPI configuration. HOT 4
- Invalid OAS file generation for Page HOT 2
- DeprecationWarning: `with_custom_options` method is deprecated, please use `fastapi_pagination.customization.CustomizePage` instead. This method will be removed in the next major release (0.13.0). HOT 1
- Add limit to CursorParams.size field HOT 3
- Move to newest version of pytest-asyncio HOT 1
- Cursor pagination, sqlalchemy and lazy joined HOT 1
- return custom headers HOT 4
- [feat] support for odmantic HOT 3
- is there anyway to limit the total value? HOT 3
- paginate expecting a different type than it gets for its items HOT 2
- Unitest with pagination using Magicmock (mockey patching) HOT 4
- Document additional functionality (e.g. `resolve_params`, `set_params`) HOT 2
- Adjustment to support Databases and SQLAlchemy 2.0 HOT 3
- Support for paginating Row tuples of object and aggregate fields HOT 3
- Using SQLAlchemy HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fastapi-pagination.