class documentation

Same as :class:`_orm.DeclarativeBase`, but does not use a metaclass to intercept new attributes. The :class:`_orm.DeclarativeBaseNoMeta` base may be used when use of custom metaclasses is desirable. .. versionadded:: 2.0

Method __init__ Undocumented
Method __init_subclass__ Undocumented
Class Variable __mapper__ The :class:`_orm.Mapper` object to which a particular class is mapped.
Class Variable __mapper_args__ Dictionary of arguments which will be passed to the :class:`_orm.Mapper` constructor.
Class Variable __table__ The :class:`_sql.FromClause` to which a particular subclass is mapped.
Class Variable __table_args__ A dictionary or tuple of arguments that will be passed to the :class:`_schema.Table` constructor. See :ref:`orm_declarative_table_configuration` for background on the specific structure of this collection.
Class Variable __tablename__ String name to assign to the generated :class:`_schema.Table` object, if not specified directly via :attr:`_orm.DeclarativeBase.__table__`.
Class Variable metadata Refers to the :class:`_schema.MetaData` collection that will be used for new :class:`_schema.Table` objects.
Class Variable registry Refers to the :class:`_orm.registry` in use where new :class:`_orm.Mapper` objects will be associated.
Class Variable _sa_registry Undocumented

Inherited from Inspectable:

Class Variable __slots__ Undocumented
def __init__(self, **kw: Any): (source)

Undocumented

def __init_subclass__(cls): (source)

Undocumented

The :class:`_orm.Mapper` object to which a particular class is mapped. May also be acquired using :func:`_sa.inspect`, e.g. ``inspect(klass)``.

__mapper_args__: Any = (source)

Dictionary of arguments which will be passed to the :class:`_orm.Mapper` constructor. .. seealso:: :ref:`orm_declarative_mapper_options`

The :class:`_sql.FromClause` to which a particular subclass is mapped. This is usually an instance of :class:`_schema.Table` but may also refer to other kinds of :class:`_sql.FromClause` such as :class:`_sql.Subquery`, depending on how the class is mapped. .. seealso:: :ref:`orm_declarative_metadata`

__table_args__: Any = (source)

A dictionary or tuple of arguments that will be passed to the :class:`_schema.Table` constructor. See :ref:`orm_declarative_table_configuration` for background on the specific structure of this collection. .. seealso:: :ref:`orm_declarative_table_configuration`

__tablename__: Any = (source)

String name to assign to the generated :class:`_schema.Table` object, if not specified directly via :attr:`_orm.DeclarativeBase.__table__`. .. seealso:: :ref:`orm_declarative_table`

Refers to the :class:`_schema.MetaData` collection that will be used for new :class:`_schema.Table` objects. .. seealso:: :ref:`orm_declarative_metadata`

Refers to the :class:`_orm.registry` in use where new :class:`_orm.Mapper` objects will be associated.

Undocumented