RoomMessagesRepository module

class repositories.room_messages_repository.RoomMessagesRepository(db_name: str = 'concord.db')

Bases: repositories.repository_interface.RepositoryInterface

delete_by_room_id(room_id: str)bool
delete_by_user_id(message_id: str)bool
find_all_by_room_id(room_id: str)Tuple[List[dtos.dto_room_messages.RoomMessages], bool]
find_all_by_user_id(message_id: str)Tuple[List[dtos.dto_room_messages.RoomMessages], bool]
find_one_by_room_id(room_id: str)Tuple[dtos.dto_room_messages.RoomMessages, bool]
find_one_by_user_id(message_id: str)Tuple[dtos.dto_room_messages.RoomMessages, bool]
put(room_messages: dtos.dto_room_messages.RoomMessages)bool

Puts an object on the database

Parameters

subject – the subject to be stored on the database

Returns

any

update_by_room_id(room_id: str, new_data: dtos.dto_room_messages.RoomMessages)bool
update_by_user_id(message_id: str, new_data: dtos.dto_room_messages.RoomMessages)bool