get Update By Version

@Query(value = ""SELECT * FROM " + UPDATES_KEY + " WHERE " + PROJECT_KEY + "=:" + PROJECT_KEY + " AND " + UPDATE_TARGET_VERSION_KEY + "=:" + UPDATE_TARGET_VERSION_KEY", nativeQuery = true )
abstract fun getUpdateByVersion(@Param(value = "project") projectId: String, @Param(value = "target_version") targetVersion: String): ProjectUpdate

Method to execute the query to select a ProjectUpdate by its target project_version

Return

the project update as ProjectUpdate

Parameters

projectId

: the project identifier

targetVersion

: the target project_version of the update to fetch