Skip to content
This repository was archived by the owner on Jun 21, 2025. It is now read-only.

Conversation

@andrewthetechie
Copy link
Owner

@andrewthetechie andrewthetechie commented Oct 15, 2021

THis PR adds a new extra to let pydantic-aioredis work with fastapi-crudrouter.

Fulfills #15

This fixes an issue with life_span where setting it to None would result
in a stacktrace. Now, keys with no expiry will properly not expire.

Additionally, it cleans up some logic around selects and adds support
for deleting all keys for a model by not passing ids
This implements a CRUDGenerator for fastapi-crudrouter.
Also, minor refactoring of models code to support setting table_name if
wanted and doing some DRY of code around keys
select now supports pagination, which means that crudrouter _get_all
supports pagination
Additionally, add tests for pagination and parameterize more tests
@andrewthetechie andrewthetechie merged commit e464db7 into main Oct 15, 2021
@andrewthetechie andrewthetechie deleted the extra-fastapi-crudrouter branch October 15, 2021 21:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants