Mapping Python Classes — SQLAlchemy 1.4 Documentation
docs.sqlalchemy.org › en › latestDec 22, 2021 · When attributes are defined using dataclasses, the @dataclass decorator consumes them but leaves them in place on the class. SQLAlchemy’s mapping process, when it encounters an attribute that normally is to be mapped to a Column, checks explicitly if the attribute is part of a Dataclasses setup, and if so will replace the class-bound dataclass attribute with its usual mapped properties.
ORM Internals — SQLAlchemy 1.4 Documentation
docs.sqlalchemy.org › en › latestattribute sqlalchemy.orm.AttributeState. loaded_value ¶ The current value of this attribute as loaded from the database. If the value has not been loaded, or is otherwise not present in the object’s dictionary, returns NO_VALUE. attribute sqlalchemy.orm.AttributeState. value ¶ Return the value of this attribute.