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): Update

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

Return

the project update as Update

Parameters

projectId

The project identifier

targetVersion

The target project_version of the update to fetch