class DeclarativeBaseNoMeta(inspection.Inspectable[
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 |
Undocumented |
Class Variable | __mapper__ |
The :class:`_orm.Mapper` object to which a particular class is mapped. |
Class Variable | __mapper |
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 |
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 |
Undocumented |
Inherited from Inspectable
:
Class Variable | __slots__ |
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)``.
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`
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`
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`