Is there a way to update columns of an entity only if the columns are null? Here's my Update function in my DAO interface:
@Query("UPDATE media SET media_name = :mediaName, media_data = :mediaData WHERE id = :id")
fun update(id: Int, mediaName: String?, mediaData: String?)
... because as of now, a value of "null" is updated for these columns.