Skip to content

ReflectModel class

edgy.ReflectModel

ReflectModel(*args, **kwargs)

Bases: Model, EdgyBaseReflectModel

Reflect on async engines is not yet supported, therefore, we need to make a sync_engine call.

PARAMETER DESCRIPTION
*args

TYPE: Any DEFAULT: ()

**kwargs

TYPE: Any DEFAULT: {}

Source code in edgy/core/db/models/base.py
48
49
50
51
52
53
def __init__(self, *args: Any, **kwargs: Any) -> None:
    super().__init__(**kwargs)
    model_references = self.setup_model_references_from_kwargs(kwargs)
    values = self.setup_model_fields_from_kwargs(kwargs)
    self.__dict__ = values
    self.__model_references__ = model_references