class _ClassScanMapperConfig(_MapperConfig): (source)
Known subclasses: sqlalchemy.orm.decl_base._DeferredMapperConfig
Undocumented
Method | __init__ |
Undocumented |
Method | map |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Class Variable | is |
Undocumented |
Instance Variable | allow |
if true, look for dataclass-processed Field objects on the target class as well as superclasses and extract ORM mapping directives from the "metadata" attribute of each Field. |
Instance Variable | allow |
Undocumented |
Instance Variable | clsdict |
Undocumented |
Instance Variable | collected |
Undocumented |
Instance Variable | collected |
Undocumented |
Instance Variable | column |
Undocumented |
Instance Variable | column |
Undocumented |
Instance Variable | dataclass |
if the class has SQLAlchemy native dataclass parameters, where we will turn the class into a dataclass within the declarative mapping process. |
Instance Variable | declared |
Undocumented |
Instance Variable | inherits |
Undocumented |
Instance Variable | is |
Undocumented |
Instance Variable | local |
Undocumented |
Instance Variable | mapper |
Undocumented |
Instance Variable | mapper |
Undocumented |
Instance Variable | persist |
Undocumented |
Instance Variable | registry |
Undocumented |
Instance Variable | table |
Undocumented |
Instance Variable | tablename |
Undocumented |
Class Method | _apply |
Undocumented |
Class Method | _assert |
Undocumented |
Class Method | _update |
Undocumented |
Method | _cls |
Produce a function that checks if a class has overridden an attribute, taking SQLAlchemy-enabled dataclass fields into account. |
Method | _cls |
produce a function to iterate the "attributes" of a class which we want to consider for mapping, adjusting for SQLAlchemy fields embedded in dataclass fields. |
Method | _collect |
Undocumented |
Method | _extract |
Undocumented |
Method | _extract |
Undocumented |
Method | _metadata |
Undocumented |
Method | _prepare |
Undocumented |
Method | _produce |
Undocumented |
Method | _scan |
Undocumented |
Method | _setup |
Undocumented |
Method | _setup |
Undocumented |
Method | _setup |
Undocumented |
Method | _setup |
Undocumented |
Method | _setup |
Undocumented |
Method | _warn |
Undocumented |
Class Variable | _include |
Undocumented |
Class Variable | _match |
Undocumented |
Inherited from _MapperConfig
:
Class Method | setup |
Undocumented |
Method | set |
Undocumented |
Instance Variable | classname |
Undocumented |
Instance Variable | cls |
Undocumented |
Instance Variable | declared |
Undocumented |
Instance Variable | properties |
Undocumented |
Method | _early |
Undocumented |
_RegistryType
, cls_: Type[ _O]
, dict_: _ClassDict
, table: Optional[ FromClause]
, mapper_kw: _MapperKwArgs
):
(source)
¶
Undocumented
if true, look for dataclass-processed Field objects on the target class as well as superclasses and extract ORM mapping directives from the "metadata" attribute of each Field. if False, dataclass fields can still be used, however they won't be mapped.
if the class has SQLAlchemy native dataclass parameters, where we will turn the class into a dataclass within the declarative mapping process.
def _apply_dataclasses_to_any_class(cls, dataclass_setup_arguments:
_DataclassArguments
, klass: Type[ _O]
, use_annotations: Mapping[ str, _AnnotationScanType]
):
(source)
¶
Undocumented
def _update_annotations_for_non_mapped_class(cls, klass:
Type[ _O]
) -> Mapping[ str, _AnnotationScanType]
:
(source)
¶
Undocumented
Produce a function that checks if a class has overridden an attribute, taking SQLAlchemy-enabled dataclass fields into account.
Type[ Any]
) -> Callable[ [], Iterable[ Tuple[ str, Any, Any, bool]]]
:
(source)
¶
produce a function to iterate the "attributes" of a class which we want to consider for mapping, adjusting for SQLAlchemy fields embedded in dataclass fields.
str
, raw_annotation: _AnnotationScanType
, originating_class: Type[ Any]
, expect_mapped: Optional[ bool]
, attr_value: Any
) -> Optional[ _CollectedAnnotation]
:
(source)
¶
Undocumented