def base_query(cls):
"""Method that should return the basic query that all queries will use.
The default base query that just returns a blank ``SELECT`` statement.
It should be overridden in child classes when ``JOIN`` or ``WHERE``
will be needed for all queries.
Returns:
:py:class:`peewee.SelectQuery`:
An unexecuted query with no logic applied.
"""
return cls.select()
评论列表
文章目录