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

Enable queries that don't return an entity #33

Closed
vitusortner opened this issue Feb 8, 2019 · 6 comments
Closed

Enable queries that don't return an entity #33

vitusortner opened this issue Feb 8, 2019 · 6 comments
Labels
duplicate This issue or pull request already exists feature Request and implementation of a feature (release drafter)
Milestone

Comments

@vitusortner
Copy link
Collaborator

vitusortner commented Feb 8, 2019

This is required to allow queries like DELETE FROM Person.
It is also required to return objects that are not entities when using @Query().

@vitusortner
Copy link
Collaborator Author

This is party resolved. Methods annotated with @Query are now able to be of type Future<void>.

@vitusortner vitusortner added feature Request and implementation of a feature (release drafter) and removed enhancement labels Mar 5, 2019
@megasoft78
Copy link

Hi,
I'm trying to run an update using Future<void> as return value but I need to pass 2 parameters to the query.
The autogenerated code is using:

await _queryAdapter.queryNoReturn(

but it's not passing any parameter. I need to pass 2 parameters that are required by the query.
How can I do it?

Thank you in advance. :)

@vitusortner
Copy link
Collaborator Author

Hi @megasoft78! This functionality is currently not supported. I will add it to the next release of the package.

@megasoft78
Copy link

Thank you. :)

@vitusortner
Copy link
Collaborator Author

#132 introduces the new feature into the develop branch.

@vitusortner vitusortner added this to the Version 1.0 milestone Jun 16, 2019
@vitusortner vitusortner added the duplicate This issue or pull request already exists label Mar 15, 2020
@vitusortner
Copy link
Collaborator Author

Duplicate of #94

@vitusortner vitusortner marked this as a duplicate of #94 Mar 15, 2020
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 feature Request and implementation of a feature (release drafter)
Development

No branches or pull requests

2 participants