class _MemoizedSelectEntities(cache_key.HasCacheKey, traversals.HasCopyInternals, visitors.Traversible): (source)
represents partial state from a Select object, for the case where Select.columns() has redefined the set of columns/entities the statement will be SELECTing from. This object represents the entities from the SELECT before that transformation was applied, so that transformations that were made in terms of the SELECT at that time, such as join() as well as options(), can access the correct context. In previous SQLAlchemy versions, this wasn't needed because these constructs calculated everything up front, like when you called join() or options(), it did everything to figure out how that would translate into specific SQL constructs that would be ready to send directly to the SQL compiler when needed. But as of 1.4, all of that stuff is done in the compilation phase, during the "compile state" portion of the process, so that the work can all be cached. So it needs to be able to resolve joins/options2 based on what the list of entities was when those methods were called.
Class Variable | __visit |
Undocumented |
Class Method | _generate |
Undocumented |
Method | _clone |
Undocumented |
Class Variable | _is |
Undocumented |
Class Variable | _traverse |
Undocumented |
Instance Variable | _raw |
Undocumented |
Instance Variable | _setup |
Undocumented |
Instance Variable | _with |
Undocumented |
Inherited from HasCacheKey
:
Class Variable | __slots__ |
Undocumented |
Class Variable | inherit |
Indicate if this :class:`.HasCacheKey` instance should make use of the cache key generation scheme used by its immediate superclass. |
Class Method | _generate |
generate cache key dispatcher for a new class. |
Class Method | _generate |
Undocumented |
Method | _gen |
return an optional cache key. |
Method | _generate |
return a cache key. |
Class Variable | _generated |
Undocumented |
Class Variable | _hierarchy |
private attribute which may be set to False to prevent the inherit_cache warning from being emitted for a hierarchy of subclasses. |
Class Variable | _is |
Undocumented |
Inherited from HasCopyInternals
(via HasCacheKey
):
Method | _copy |
Reassign internal elements to be clones of themselves. |
Inherited from HasTraverseInternals
(via HasCacheKey
, HasCopyInternals
):
Method | get |
Return immediate child :class:`.visitors.HasTraverseInternals` elements of this :class:`.visitors.HasTraverseInternals`. |
Class Variable | _is |
Undocumented |
Inherited from Visitable
(via HasCacheKey
, HasCopyInternals
, HasTraverseInternals
):
Method | __class |
Undocumented |
Method | __init |
Undocumented |
Class Method | _generate |
Undocumented |
Method | _compiler |
Undocumented |
Class Variable | _original |
Undocumented |