Class | InspectionAttr |
A base class applied to all ORM objects that can be returned by the _sa.inspect function. |
Class | InspectionAttrInfo |
Adds the .info attribute to .InspectionAttr . |
Constant | ATTR_EMPTY |
Undocumented |
Constant | ATTR_WAS_SET |
Undocumented |
Constant | CALLABLES_OK |
Undocumented |
Constant | DEFAULT_MANAGER_ATTR |
Undocumented |
Constant | DEFAULT_STATE_ATTR |
Undocumented |
Constant | DEFERRED_HISTORY_LOAD |
Undocumented |
Constant | INIT_OK |
Undocumented |
Constant | LOAD_AGAINST_COMMITTED |
Undocumented |
Constant | NO_AUTOFLUSH |
Undocumented |
Constant | NO_CHANGE |
Undocumented |
Constant | NO_RAISE |
Undocumented |
Constant | NO_VALUE |
Undocumented |
Constant | NON_PERSISTENT_OK |
Undocumented |
Constant | PASSIVE_CLASS_MISMATCH |
Undocumented |
Constant | PASSIVE_NO_FETCH |
Undocumented |
Constant | PASSIVE_NO_FETCH_RELATED |
Undocumented |
Constant | PASSIVE_NO_INITIALIZE |
Undocumented |
Constant | PASSIVE_NO_RESULT |
Undocumented |
Constant | PASSIVE_OFF |
Undocumented |
Constant | PASSIVE_ONLY_PERSISTENT |
Undocumented |
Constant | PASSIVE_RETURN_NO_VALUE |
Undocumented |
Constant | RELATED_OBJECT_OK |
Undocumented |
Constant | SQL_OK |
Undocumented |
Variable | instance_dict |
Undocumented |
Variable | instance_state |
Undocumented |
Class | _MappedAttribute |
Mixin for attributes which should be replaced by mapper-assigned attributes. |
Function | _assertions |
Undocumented |
Function | _class_to_mapper |
Undocumented |
Function | _entity_descriptor |
Return a class attribute given an entity and string name. |
Function | _inspect_mapped_class |
Undocumented |
Function | _inspect_mapped_object |
Undocumented |
Function | _is_aliased_class |
Undocumented |
Function | _is_mapped_class |
Return True if the given object is a mapped class, _orm.Mapper , or .AliasedClass . |
Function | _mapper_or_none |
Return the _orm.Mapper for the given class or None if the class is not mapped. |
Function | _orm_columns |
Undocumented |
Function | attribute_str |
Undocumented |
Function | class_mapper |
Given a class, return the primary _orm.Mapper associated with the key. |
Function | instance_str |
Return a string describing an instance. |
Function | manager_of_class |
Undocumented |
Function | object_mapper |
Given an object, return the primary Mapper associated with the object instance. |
Function | object_state |
Given an object, return the .InstanceState associated with the object. |
Function | state_attribute_str |
Undocumented |
Function | state_class_str |
Return a string describing an instance's class via its InstanceState. |
Function | state_str |
Return a string describing an instance via its InstanceState. |
Constant | _DEFER_FOR_STATE |
Undocumented |
Constant | _RAISE_FOR_STATE |
Undocumented |
Constant | _SET_DEFERRED_EXPIRED |
Undocumented |
Variable | _never_set |
Undocumented |
Variable | _none_set |
Undocumented |
Variable | _state_mapper |
Undocumented |
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Undocumented
Value |
|
Return a class attribute given an entity and string name.
May return .InstrumentedAttribute
or user-defined
attribute.
_orm.Mapper
, or .AliasedClass
._orm.Mapper
for the given class or None if the
class is not mapped.Given a class, return the primary _orm.Mapper
associated
with the key.
Raises .UnmappedClassError
if no mapping is configured
on the given class, or .ArgumentError
if a non-class
object is passed.
Equivalent functionality is available via the _sa.inspect
function as:
inspect(some_mapped_class)
Using the inspection system will raise
sqlalchemy.exc.NoInspectionAvailable
if the class is not mapped.
Given an object, return the primary Mapper associated with the object instance.
Raises sqlalchemy.orm.exc.UnmappedInstanceError
if no mapping is configured.
This function is available via the inspection system as:
inspect(instance).mapper
Using the inspection system will raise
sqlalchemy.exc.NoInspectionAvailable
if the instance is
not part of a mapping.
Given an object, return the .InstanceState
associated with the object.
Raises sqlalchemy.orm.exc.UnmappedInstanceError
if no mapping is configured.
Equivalent functionality is available via the _sa.inspect
function as:
inspect(instance)
Using the inspection system will raise
sqlalchemy.exc.NoInspectionAvailable
if the instance is
not part of a mapping.