Skip to content

activity_session_participant_dao

Activity session participant data access object (DAO)

Classes

ActivitySessionParticipantDao

ActivitySessionParticipantDao(session: Session)

Bases: BaseDao

Activity session participant data access object (DAO)

Attributes

model_class property
model_class: Type[ActivitySessionParticipant]

Functions

get_by_session_participant
get_by_session_participant(
    session_pkid: str, participant_pkid: str
) -> ActivitySessionParticipant | None

Retrieve an ActivitySessionParticipant object by session and participant IDs.

Parameters:

  • session_pkid (str) –

    The ID of the session.

  • participant_pkid (str) –

    The ID of the participant.

Returns:

hard_delete_by_participant_pkid
hard_delete_by_participant_pkid(
    participant_pkid: str,
) -> int

Hard delete all activity session participant records for a specific participant.

Parameters:

  • agent_pkid (str) –

    Agent PKID

Returns:

  • int ( int ) –

    Number of records deleted