edit Service

@Modifying(clearAutomatically = true )
@Query(value = ""UPDATE " + SERVICES_KEY + " SET " + NAME_KEY + "=:" + NAME_KEY + "," + SERVICE_PATH_KEY + "=:" + SERVICE_PATH_KEY + _WHERE_ + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true )
abstract fun editService(@Param(value = "id") serviceId: String, @Param(value = "name") serviceName: String, @Param(value = "service_path") servicePath: String)

Query used to edit an existing service

Parameters

serviceId

The identifier of the service

serviceName

The name of the service

servicePath

The path of the service inside the filesystem of the host