editTeam

@Modifying(clearAutomatically = true)
@Query(value = ""UPDATE " + TEAMS_KEY + " SET " + TITLE_KEY + "=:" + TITLE_KEY + "," + LOGO_PIC_KEY + "=:" + LOGO_PIC_KEY + "," + DESCRIPTION_KEY + "=:" + DESCRIPTION_KEY + " WHERE " + TEAM_IDENTIFIER_KEY + "=:" + TEAM_IDENTIFIER_KEY + " AND " + OWNER_KEY + "=:" + OWNER_KEY", nativeQuery = true)
abstract fun editTeam(@Param(value = "team_id") teamId: String, @Param(value = "title") title: String, @Param(value = "logo_pic") logoPic: String, @Param(value = "description") description: String, @Param(value = "owner") owner: String)

Method to execute the query to edit a team

Parameters

teamId

: the identifier of the team

title

: the title of the team

logoPic

: the logo picture of the team

description

: the description of the team

owner

: the owner of the team