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

Add compound query support for AioModel #237

Closed
kalombos opened this issue May 9, 2024 · 2 comments
Closed

Add compound query support for AioModel #237

kalombos opened this issue May 9, 2024 · 2 comments
Milestone

Comments

@kalombos
Copy link
Collaborator

kalombos commented May 9, 2024

This code should work:

query = (
    TestModel.select().where(TestModel.id == obj1.id) |
    TestModel.select().where(TestModel.id == obj2.id)
)
await query.aio_execute()
@spumer
Copy link

spumer commented Jun 21, 2024

This is really correct query for Peeweee? D:

@kalombos
Copy link
Collaborator Author

Yeah. Here is an example. The issue is about backward compatibility mostly since the query works if you use manager. The problem is there are a lot of cases for contstructing such queries. Here is and here is and here is. I think fixing the query is enough for first iteration :)

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

2 participants