door icon indicating copy to clipboard operation
door copied to clipboard

@Insert / @Delete / @Update does not support vararg

Open gonemad opened this issue 1 year ago • 0 comments

This will fail to compile complaining about no @Entity annotation being found:

@Insert
abstract fun insert(vararg items: EntityName) : List<Long>

This does work, but vararg support would be nice since Room supports it

@Insert
abstract fun insert(items: List<EntityName>) : List<Long>

gonemad avatar Jan 19 '24 22:01 gonemad