Skip to content

1.1.0

Latest

Choose a tag to compare

@gmyun1999 gmyun1999 released this 10 Dec 06:31
· 8 commits to main since this release
b234d59

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 = UserFilter

repository

[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