class index_property(hybrid_property): (source)
A property generator. The generated property describes an object attribute that corresponds to an :class:`_types.Indexable` column. .. versionadded:: 1.1 .. seealso:: :mod:`sqlalchemy.ext.indexable`
Method | __init__ |
Create a new :class:`.index_property`. |
Method | expr |
Undocumented |
Method | fdel |
Undocumented |
Method | fget |
Undocumented |
Method | fset |
Undocumented |
Instance Variable | attr |
Undocumented |
Instance Variable | datatype |
Undocumented |
Instance Variable | default |
Undocumented |
Instance Variable | index |
Undocumented |
Instance Variable | onebased |
Undocumented |
Method | _fget |
Undocumented |
Constant | _NO |
Undocumented |
Inherited from hybrid_property
:
Method | __delete__ |
Undocumented |
Method | __get__ |
Undocumented |
Method | __set__ |
Undocumented |
Method | comparator |
Provide a modifying decorator that defines a custom comparator producing method. |
Method | deleter |
Provide a modifying decorator that defines a deletion method. |
Method | expression |
Provide a modifying decorator that defines a SQL-expression producing method. |
Method | getter |
Provide a modifying decorator that defines a getter method. |
Method | setter |
Provide a modifying decorator that defines a setter method. |
Method | update |
Provide a modifying decorator that defines an UPDATE tuple producing method. |
Class Variable | __name__ |
Undocumented |
Class Variable | is |
True if this object is a Python :term:`descriptor`. |
Instance Variable | custom |
Undocumented |
Instance Variable | update |
Undocumented |
Property | inplace |
Return the inplace mutator for this :class:`.hybrid_property`. |
Property | overrides |
Prefix for a method that is overriding an existing attribute. |
Class | _ |
A builder helper for .hybrid_property. |
Method | _copy |
Undocumented |
Method | _get |
Undocumented |
Method | _get |
Undocumented |
Property | _expr |
Undocumented |
Inherited from InspectionAttrInfo
(via hybrid_property
):
Class Variable | __slots__ |
Undocumented |
Property | info |
Info dictionary associated with the object, allowing user-defined data to be associated with this :class:`.InspectionAttr`. |
Inherited from InspectionAttr
(via hybrid_property
, InspectionAttrInfo
):
Class Variable | is |
True if this object is an instance of :class:`.AliasedClass`. |
Class Variable | is |
True if this object is an instance of :class:`.Bundle`. |
Class Variable | is |
True if this object is an instance of :class:`_expression.ClauseElement`. |
Class Variable | is |
True if this object is an instance of :class:`.InstanceState`. |
Class Variable | is |
True if this object is an instance of :class:`_orm.Mapper`. |
Class Variable | is |
True if this object is an instance of :class:`.MapperProperty`. |
Class Variable | is |
Return True if this object is an instance of :class:`_expression.Selectable`. |
Class Variable | _is |
True if this object is an internal proxy object. |
Create a new :class:`.index_property`. :param attr_name: An attribute name of an `Indexable` typed column, or other attribute that returns an indexable structure. :param index: The index to be used for getting and setting this value. This should be the Python-side index value for integers. :param default: A value which will be returned instead of `AttributeError` when there is not a value at given index. :param datatype: default datatype to use when the field is empty. By default, this is derived from the type of index used; a Python list for an integer index, or a Python dictionary for any other style of index. For a list, the list will be initialized to a list of None values that is at least ``index`` elements long. :param mutable: if False, writes and deletes to the attribute will be disallowed. :param onebased: assume the SQL representation of this value is one-based; that is, the first index in SQL is 1, not zero.