Closed vitidev closed 2 years ago
The library follows API from peewee
and only provides async support. Peewee has two similar methods: get_or_none
and get_by_id
. Both of the methods are supported by AIOModel
. I don't think that we have to expand peewee interface more than needed.
Need this feature
Of course I can use
but for this I need to have
manager
in placeor something like
get_by_id(Model, pk, raise_non_exists=True)
because the nameget_by_id_or_none
is just awful