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

can @Query support part attributs? #378

Closed
libingspace opened this issue Jul 23, 2020 · 2 comments
Closed

can @Query support part attributs? #378

libingspace opened this issue Jul 23, 2020 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@libingspace
Copy link

I want to query id from a table, so ,i add this to the dao file
@Query('SELECT id FROM Taskitem') Future<List<int>> findAllTaskitemIdList();

but this build error with output
"[SEVERE] floor_generator:floor_generator on lib/entity/database.dart:
Error running FloorGenerator
NoSuchMethodError: The getter 'name' was called on null."

So, can floor support this? how can i do ?
thanks

@mqus
Copy link
Collaborator

mqus commented Jul 23, 2020

This is pretty much the same issue as #374 and is that way because primitive Values as returns from dao methods are not supported yet. They are already implemented though (#361) and just need a review and some testing. If you check out the branch and reference floor through a path reference in your pubspec then you can try it out right now. Alternatively you can look at the linked issues (e.g. #200) to find workarounds

@mqus
Copy link
Collaborator

mqus commented Apr 23, 2021

I'll close this as a duplicate of #200.

@mqus mqus closed this as completed Apr 23, 2021
@mqus mqus added the duplicate This issue or pull request already exists label Apr 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Development

No branches or pull requests

2 participants