app.repository.wallet_transaction_repository module

class app.repository.wallet_transaction_repository.WalletTransactionRepository(session_factory, model=<class 'app.model.wallet_transactions.WalletTransactions'>)[source]

Bases: BaseRepository

Repository class for wallet transactions.

Parameters:

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

session_factory

Factory for creating SQLAlchemy sessions.

Type:

Callable[…, AbstractAsyncContextManager[AsyncSession]]

model

SQLAlchemy model class for wallet transactions.

__init__(session_factory, model=<class 'app.model.wallet_transactions.WalletTransactions'>)[source]
Initializes the WalletTransactionRepository with the provided session

factory and model.

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

  • model – The SQLAlchemy model class for wallet transactions.

Return type:

None