Filter a query #320
Unanswered
david-shiko
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I'm not sure
This library is database access layer (DBAL) and not a complete stack. It expects DB query as either SQLAlchemy expression or SQL string. I don't know how one can retrieve filtered query for ORM, perhaps something like this will work? query = models.claims.select().filter_by(id=fake_user_id)
return await database.database_obj.fetch_all(query=query) |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm sorry for a possible silly question, how filter queryes?
Example: I'm trying convert this query to ORM style.
P.S. I can't find detailed docs except this one because library name intersects with other python guides for common usage of databases in python, so, if you know any more verbose docs - please, provide a link :)
Beta Was this translation helpful? Give feedback.
All reactions