pydent.interfaces.QueryInterfaceABC

class pydent.interfaces.QueryInterfaceABC[source]

Bases: abc.ABC

Interface that is used by models to find other models.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__

Initialize self.

all()

find(mid)

find_by_name(name)

first()

last()

model_name()

Alias for self.model.__name__

one()

where(query, **kwargs)

abstract model_name()[source]

Alias for self.model.__name__