class documentation

class InternalTraversal(Enum): (source)

View In Hierarchy

Defines visitor symbols used for internal traversal. The :class:`.InternalTraversal` class is used in two ways. One is that it can serve as the superclass for an object that implements the various visit methods of the class. The other is that the symbols themselves of :class:`.InternalTraversal` are used within the ``_traverse_internals`` collection. Such as, the :class:`.Case` object defines ``_traverse_internals`` as :: _traverse_internals = [ ("value", InternalTraversal.dp_clauseelement), ("whens", InternalTraversal.dp_clauseelement_tuples), ("else_", InternalTraversal.dp_clauseelement), ] Above, the :class:`.Case` class indicates its internal state as the attributes named ``value``, ``whens``, and ``else_``. They each link to an :class:`.InternalTraversal` method which indicates the type of datastructure referred towards. Using the ``_traverse_internals`` structure, objects of type :class:`.InternalTraversible` will have the following methods automatically implemented: * :meth:`.HasTraverseInternals.get_children` * :meth:`.HasTraverseInternals._copy_internals` * :meth:`.HasCacheKey._gen_cache_key` Subclasses can also implement these methods directly, particularly for the :meth:`.HasTraverseInternals._copy_internals` method, when special steps are needed. .. versionadded:: 1.4

Class Variable dp_annotations_key Visit the _annotations_cache_key element.
Class Variable dp_anon_name Visit a potentially "anonymized" string value.
Class Variable dp_boolean Visit a boolean value.
Class Variable dp_clauseelement Visit a :class:`_expression.ClauseElement` object.
Class Variable dp_clauseelement_list Visit a list of :class:`_expression.ClauseElement` objects.
Class Variable dp_clauseelement_tuple Visit a tuple of :class:`_expression.ClauseElement` objects.
Class Variable dp_clauseelement_tuples Visit a list of tuples which contain :class:`_expression.ClauseElement` objects.
Class Variable dp_dialect_options Visit a dialect options structure.
Class Variable dp_dml_multi_values Visit the values() multi-valued list of dictionaries of an :class:`_expression.Insert` object.
Class Variable dp_dml_ordered_values Visit the values() ordered tuple list of an :class:`_expression.Update` object.
Class Variable dp_dml_values Visit the values() dictionary of a :class:`.ValuesBase` (e.g. Insert or Update) object.
Class Variable dp_executable_options Undocumented
Class Variable dp_fromclause_canonical_column_collection Visit a :class:`_expression.FromClause` object in the context of the ``columns`` attribute.
Class Variable dp_fromclause_ordered_set Visit an ordered set of :class:`_expression.FromClause` objects.
Class Variable dp_has_cache_key Visit a :class:`.HasCacheKey` object.
Class Variable dp_has_cache_key_list Visit a list of :class:`.HasCacheKey` objects.
Class Variable dp_has_cache_key_tuples Visit a list of tuples which contain :class:`.HasCacheKey` objects.
Class Variable dp_ignore Specify an object that should be ignored entirely.
Class Variable dp_inspectable Visit an inspectable object where the return value is a :class:`.HasCacheKey` object.
Class Variable dp_inspectable_list Visit a list of inspectable objects which upon inspection are HasCacheKey objects.
Class Variable dp_memoized_select_entities Undocumented
Class Variable dp_multi Visit an object that may be a :class:`.HasCacheKey` or may be a plain hashable object.
Class Variable dp_multi_list Visit a tuple containing elements that may be :class:`.HasCacheKey` or may be a plain hashable object.
Class Variable dp_named_ddl_element Visit a simple named DDL element.
Class Variable dp_operator Visit an operator.
Class Variable dp_plain_dict Visit a dictionary with string keys.
Class Variable dp_plain_obj Visit a plain python object.
Class Variable dp_prefix_sequence Visit the sequence represented by :class:`_expression.HasPrefixes` or :class:`_expression.HasSuffixes`.
Class Variable dp_propagate_attrs Visit the propagate attrs dict. This hardcodes to the particular elements we care about right now.
Class Variable dp_setup_join_tuple Undocumented
Class Variable dp_statement_hint_list Visit the ``_statement_hints`` collection of a :class:`_expression.Select` object.
Class Variable dp_string Visit a plain string value.
Class Variable dp_string_clauseelement_dict Visit a dictionary of string keys to :class:`_expression.ClauseElement` objects.
Class Variable dp_string_list Visit a list of strings.
Class Variable dp_string_multi_dict Visit a dictionary of string keys to values which may either be plain immutable/hashable or :class:`.HasCacheKey` objects.
Class Variable dp_table_hint_list Visit the ``_hints`` collection of a :class:`_expression.Select` object.
Class Variable dp_type Visit a :class:`.TypeEngine` object
Class Variable dp_unknown_structure Visit an unknown structure.
Class Variable dp_with_context_options Undocumented
dp_annotations_key: str = (source)

Visit the _annotations_cache_key element. This is a dictionary of additional information about a ClauseElement that modifies its role. It should be included when comparing or caching objects, however generating this key is relatively expensive. Visitors should check the "_annotations" dict for non-None first before creating this key.

dp_anon_name: str = (source)

Visit a potentially "anonymized" string value. The string value is considered to be significant for cache key generation.

dp_boolean: str = (source)

Visit a boolean value. The boolean value is considered to be significant for cache key generation.

dp_clauseelement: str = (source)

Visit a :class:`_expression.ClauseElement` object.

dp_clauseelement_list: str = (source)

Visit a list of :class:`_expression.ClauseElement` objects.

dp_clauseelement_tuple: str = (source)

Visit a tuple of :class:`_expression.ClauseElement` objects.

dp_clauseelement_tuples: str = (source)

Visit a list of tuples which contain :class:`_expression.ClauseElement` objects.

dp_dialect_options: str = (source)

Visit a dialect options structure.

dp_dml_multi_values: str = (source)

Visit the values() multi-valued list of dictionaries of an :class:`_expression.Insert` object.

dp_dml_ordered_values: str = (source)

Visit the values() ordered tuple list of an :class:`_expression.Update` object.

dp_dml_values: str = (source)

Visit the values() dictionary of a :class:`.ValuesBase` (e.g. Insert or Update) object.

dp_executable_options: str = (source)

Undocumented

dp_fromclause_canonical_column_collection: str = (source)

Visit a :class:`_expression.FromClause` object in the context of the ``columns`` attribute. The column collection is "canonical", meaning it is the originally defined location of the :class:`.ColumnClause` objects. Right now this means that the object being visited is a :class:`_expression.TableClause` or :class:`_schema.Table` object only.

dp_fromclause_ordered_set: str = (source)

Visit an ordered set of :class:`_expression.FromClause` objects.

dp_has_cache_key: str = (source)

Visit a :class:`.HasCacheKey` object.

dp_has_cache_key_list: str = (source)

Visit a list of :class:`.HasCacheKey` objects.

dp_has_cache_key_tuples: str = (source)

Visit a list of tuples which contain :class:`.HasCacheKey` objects.

dp_ignore: str = (source)

Specify an object that should be ignored entirely. This currently applies function call argument caching where some arguments should not be considered to be part of a cache key.

dp_inspectable: str = (source)

Visit an inspectable object where the return value is a :class:`.HasCacheKey` object.

dp_inspectable_list: str = (source)

Visit a list of inspectable objects which upon inspection are HasCacheKey objects.

dp_memoized_select_entities: str = (source)

Undocumented

dp_multi: str = (source)

Visit an object that may be a :class:`.HasCacheKey` or may be a plain hashable object.

dp_multi_list: str = (source)

Visit a tuple containing elements that may be :class:`.HasCacheKey` or may be a plain hashable object.

dp_named_ddl_element: str = (source)

Visit a simple named DDL element. The current object used by this method is the :class:`.Sequence`. The object is only considered to be important for cache key generation as far as its name, but not any other aspects of it.

dp_operator: str = (source)

Visit an operator. The operator is a function from the :mod:`sqlalchemy.sql.operators` module. The operator value is considered to be significant for cache key generation.

dp_plain_dict: str = (source)

Visit a dictionary with string keys. The keys of the dictionary should be strings, the values should be immutable and hashable. The dictionary is considered to be significant for cache key generation.

dp_plain_obj: str = (source)

Visit a plain python object. The value should be immutable and hashable, such as an integer. The value is considered to be significant for cache key generation.

dp_prefix_sequence: str = (source)

Visit the sequence represented by :class:`_expression.HasPrefixes` or :class:`_expression.HasSuffixes`.

dp_propagate_attrs: str = (source)

Visit the propagate attrs dict. This hardcodes to the particular elements we care about right now.

dp_setup_join_tuple: str = (source)

Undocumented

dp_statement_hint_list: str = (source)

Visit the ``_statement_hints`` collection of a :class:`_expression.Select` object.

dp_string: str = (source)

Visit a plain string value. Examples include table and column names, bound parameter keys, special keywords such as "UNION", "UNION ALL". The string value is considered to be significant for cache key generation.

dp_string_clauseelement_dict: str = (source)

Visit a dictionary of string keys to :class:`_expression.ClauseElement` objects.

dp_string_list: str = (source)

Visit a list of strings.

dp_string_multi_dict: str = (source)

Visit a dictionary of string keys to values which may either be plain immutable/hashable or :class:`.HasCacheKey` objects.

dp_table_hint_list: str = (source)

Visit the ``_hints`` collection of a :class:`_expression.Select` object.

Visit a :class:`.TypeEngine` object The type object is considered to be significant for cache key generation.

dp_unknown_structure: str = (source)

Visit an unknown structure.

dp_with_context_options: str = (source)

Undocumented