app.repository.user_interactions_repository module

class app.repository.user_interactions_repository.UserInteractionsRepository(session_factory, model=<class 'app.model.user_interactions.UserInteractions'>)[source]

Bases: BaseRepository

Repository class for User interactions.

Parameters:

session_factory (Callable[[...], AbstractAsyncContextManager[AsyncSession]])

session_factory

Factory for creating SQLAlchemy sessions.

Type:

Callable[…, AbstractAsyncContextManager[AsyncSession]]

model

SQLAlchemy model class for User interactions.

__init__(session_factory, model=<class 'app.model.user_interactions.UserInteractions'>)[source]
Initializes the UserInteractionsRepository with the provided session

factory and model.

Parameters:
  • session_factory (Callable[..., AbstractAsyncContextManager[AsyncSession]]) – The session factory.

  • model – The SQLAlchemy model class for User interactions.

Return type:

None