Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gonemad opened this issue Jan 19, 2024 · 0 comments
Open

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

gonemad opened this issue Jan 19, 2024 · 0 comments

Comments

@gonemad
Copy link

gonemad commented Jan 19, 2024

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant