Releases: 4jades/base-repository
Releases · 4jades/base-repository
Release list
1.1.0
typing
[typing] [feature] Added TSchema generic to BaseRepository, enabling precise type inference for all CRUD operations based on model and schema types.
References: PR #14
[typing] [change] Removed reliance on the mapping_schema attribute. Repositories now declare both ORM model and Pydantic schema through generics:
class UserRepo(BaseRepository[UserModel, UserSchema]):
filter_class = UserFilterrepository
[repository] [feature] CRUD and query methods now return the correct ORM or schema type depending on generics and the convert_domain flag.
Full Changelog: v1.0.2...v1.1.0