yezz123 / ormdantic

Asynchronous ORM that uses pydantic models to represent database tables ✨

Home Page:https://ormdantic.yezz.me/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enhancement: add count query

iron3oxide opened this issue · comments

Right now it is not possible to perform a count query, only to use find_many() and count the results in python. In order to maintain the elegant query syntax that exists right now, I propose to implement it as such:
db[Flavor].count(__similar arguments to find_many()__)