I'm trying to figure out how to pass multiple method variables to an Android Room DAO @Query statement. Below is my attempt. I'm trying to create a 'generic' @Query method to avoid duplicating it for each and every table query. As you can see from the image, I'm able to pass all my variables except the 'table' variable which identifies the table name to be searched.
I wasn't sure if anyone here works with Room enough to know or have tried this?
Thanks!
[GALLERY=media, 149]RoomQueryStatement by Guitarist posted Feb 13, 2020 at 11:13 AM[/GALLERY]
I wasn't sure if anyone here works with Room enough to know or have tried this?
Thanks!
[GALLERY=media, 149]RoomQueryStatement by Guitarist posted Feb 13, 2020 at 11:13 AM[/GALLERY]