app.repository.user_actions_repository module¶
- class app.repository.user_actions_repository.UserActionsRepository(session_factory, model=<class 'app.model.user_actions.UserActions'>)[source]¶
Bases:
BaseRepositoryRepository class for user points.
- Parameters:
session_factory (Callable[[...], AbstractAsyncContextManager[AsyncSession]])
- session_factory¶
Factory for creating SQLAlchemy sessions.
- Type:
Callable[…, AbstractAsyncContextManager[AsyncSession]]
- model¶
SQLAlchemy model class for user points.
- __init__(session_factory, model=<class 'app.model.user_actions.UserActions'>)[source]¶
- Initializes the UserPointsRepository with the provided session factory
and model.
- Parameters:
session_factory (Callable[..., AbstractAsyncContextManager[AsyncSession]]) – The session factory.
model – The SQLAlchemy model class for user points.
- Return type:
None