-
Hi everyone, I'm a new user of Floor and I would like to know if there is a way to do a Query to Select a Column Example: I would like to get each Barecode so in my ProductDao I did: @query('SELECT barecode FROM $stocksSqliteTableName') when I generate my database.g file, the following error appears: Thank's for your help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm no expert, but I believe that a select view would be able to do the trick. Apparently floor supports it: https://pinchbv.github.io/floor/database-views/ Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Since Floor is an ORM framework, we cannot access a specific column. To successfully generate In your case it should look as a sample below:
|
Beta Was this translation helpful? Give feedback.
I'm no expert, but I believe that a select view would be able to do the trick. Apparently floor supports it: https://pinchbv.github.io/floor/database-views/
Hope this helps.