R
R
Roma2022-04-21 21:26:09
Python
Roma, 2022-04-21 21:26:09

How to check the presence of a record in the database through peewee?

Hello, can you tell me how to check if there is a record in the database?
I want to get False or None, but it doesn't work.
Gives a huge error (
q = Pets.get(Pets.user_id==252)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
LXSTVAYNE, 2022-04-21
@POMA0197263

docs.peewee-orm.com/en/latest/peewee/api.html#Mode...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question