services¶
Services for the teams domain.
- class app.domain.teams.services.TeamInvitationService(session: AsyncSession | async_scoped_session[AsyncSession], *, statement: Select[Any] | None = None, auto_expunge: bool = False, auto_refresh: bool = True, auto_commit: bool = False, order_by: list[OrderingPair] | OrderingPair | None = None, error_messages: ErrorMessages | None | EmptyType = <class 'advanced_alchemy.utils.dataclass.Empty'>, load: LoadSpec | None = None, execution_options: dict[str, Any] | None = None, **repo_kwargs: Any)[source]¶
Bases:
SQLAlchemyAsyncRepositoryService
[TeamInvitation
, Any]Team Invitation Service.
Configure the service object.
- Parameters:
session – Session managing the unit-of-work for the operation.
statement – To facilitate customization of the underlying select query.
auto_expunge – Remove object from session before returning.
auto_refresh – Refresh object from session before returning.
auto_commit – Commit objects before returning.
order_by – Set default order options for queries.
error_messages – A set of custom error messages to use for operations
load – Set default relationships to be loaded
execution_options – Set default execution options
**repo_kwargs – passed as keyword args to repo instantiation.
- class TeamInvitationRepository(*, statement: Select[tuple[ModelT]] | None = None, session: AsyncSession | async_scoped_session[AsyncSession], auto_expunge: bool = False, auto_refresh: bool = True, auto_commit: bool = False, order_by: list[OrderingPair] | OrderingPair | None = None, error_messages: ErrorMessages | None | EmptyType = <class 'advanced_alchemy.utils.dataclass.Empty'>, load: LoadSpec | None = None, execution_options: dict[str, Any] | None = None, **kwargs: Any)[source]¶
Bases:
SQLAlchemyAsyncRepository
[TeamInvitation
]Team Invitation Repository.
Repository for SQLAlchemy models.
- Parameters:
statement – To facilitate customization of the underlying select query.
session – Session managing the unit-of-work for the operation.
auto_expunge – Remove object from session before returning.
auto_refresh – Refresh object from session before returning.
auto_commit – Commit objects before returning.
order_by – Set default order options for queries.
load – Set default relationships to be loaded
execution_options – Set default execution options
error_messages – A set of custom error messages to use for operations
**kwargs – Additional arguments.
- model_type¶
alias of
TeamInvitation
- repository_type¶
alias of
TeamInvitationRepository
- class app.domain.teams.services.TeamMemberService(session: AsyncSession | async_scoped_session[AsyncSession], *, statement: Select[Any] | None = None, auto_expunge: bool = False, auto_refresh: bool = True, auto_commit: bool = False, order_by: list[OrderingPair] | OrderingPair | None = None, error_messages: ErrorMessages | None | EmptyType = <class 'advanced_alchemy.utils.dataclass.Empty'>, load: LoadSpec | None = None, execution_options: dict[str, Any] | None = None, **repo_kwargs: Any)[source]¶
Bases:
SQLAlchemyAsyncRepositoryService
[TeamMember
, Any]Team Member Service.
Configure the service object.
- Parameters:
session – Session managing the unit-of-work for the operation.
statement – To facilitate customization of the underlying select query.
auto_expunge – Remove object from session before returning.
auto_refresh – Refresh object from session before returning.
auto_commit – Commit objects before returning.
order_by – Set default order options for queries.
error_messages – A set of custom error messages to use for operations
load – Set default relationships to be loaded
execution_options – Set default execution options
**repo_kwargs – passed as keyword args to repo instantiation.
- class TeamMemberRepository(*, statement: Select[tuple[ModelT]] | None = None, session: AsyncSession | async_scoped_session[AsyncSession], auto_expunge: bool = False, auto_refresh: bool = True, auto_commit: bool = False, order_by: list[OrderingPair] | OrderingPair | None = None, error_messages: ErrorMessages | None | EmptyType = <class 'advanced_alchemy.utils.dataclass.Empty'>, load: LoadSpec | None = None, execution_options: dict[str, Any] | None = None, **kwargs: Any)[source]¶
Bases:
SQLAlchemyAsyncRepository
[TeamMember
]Team Member Repository.
Repository for SQLAlchemy models.
- Parameters:
statement – To facilitate customization of the underlying select query.
session – Session managing the unit-of-work for the operation.
auto_expunge – Remove object from session before returning.
auto_refresh – Refresh object from session before returning.
auto_commit – Commit objects before returning.
order_by – Set default order options for queries.
load – Set default relationships to be loaded
execution_options – Set default execution options
error_messages – A set of custom error messages to use for operations
**kwargs – Additional arguments.
- model_type¶
alias of
TeamMember
- repository_type¶
alias of
TeamMemberRepository
- class app.domain.teams.services.TeamService(session: AsyncSession | async_scoped_session[AsyncSession], *, statement: Select[Any] | None = None, auto_expunge: bool = False, auto_refresh: bool = True, auto_commit: bool = False, order_by: list[OrderingPair] | OrderingPair | None = None, error_messages: ErrorMessages | None | EmptyType = <class 'advanced_alchemy.utils.dataclass.Empty'>, load: LoadSpec | None = None, execution_options: dict[str, Any] | None = None, **repo_kwargs: Any)[source]¶
Bases:
SQLAlchemyAsyncRepositoryService
[Team
, Any]Team Service.
Configure the service object.
- Parameters:
session – Session managing the unit-of-work for the operation.
statement – To facilitate customization of the underlying select query.
auto_expunge – Remove object from session before returning.
auto_refresh – Refresh object from session before returning.
auto_commit – Commit objects before returning.
order_by – Set default order options for queries.
error_messages – A set of custom error messages to use for operations
load – Set default relationships to be loaded
execution_options – Set default execution options
**repo_kwargs – passed as keyword args to repo instantiation.
- class TeamRepository(*, statement: Select[tuple[ModelT]] | None = None, session: AsyncSession | async_scoped_session[AsyncSession], auto_expunge: bool = False, auto_refresh: bool = True, auto_commit: bool = False, order_by: list[OrderingPair] | OrderingPair | None = None, error_messages: ErrorMessages | None | EmptyType = <class 'advanced_alchemy.utils.dataclass.Empty'>, load: LoadSpec | None = None, execution_options: dict[str, Any] | None = None, **kwargs: Any)[source]¶
Bases:
SQLAlchemyAsyncSlugRepository
[Team
]Team Repository.
Repository for SQLAlchemy models.
- Parameters:
statement – To facilitate customization of the underlying select query.
session – Session managing the unit-of-work for the operation.
auto_expunge – Remove object from session before returning.
auto_refresh – Refresh object from session before returning.
auto_commit – Commit objects before returning.
order_by – Set default order options for queries.
load – Set default relationships to be loaded
execution_options – Set default execution options
error_messages – A set of custom error messages to use for operations
**kwargs – Additional arguments.
- model_type¶
alias of
Team
- repository_type¶
alias of
TeamRepository
- match_fields: list[str] | str | None = ['name']¶
List of dialects that prefer to use
field.id = ANY(:1)
instead offield.id IN (...)
.
- async to_model_on_create(data: ModelDictT[m.Team]) ModelDictT[m.Team] [source]¶
Convenience method to allow for custom behavior on create.
- Parameters:
data – The data to be converted to a model.
- Returns:
The data to be converted to a model.