MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / visit_multi

Method visit_multi

lib/sqlalchemy/sql/cache_key.py:662–677  ·  view source on GitHub ↗
(
        self,
        attrname: str,
        obj: Any,
        parent: Any,
        anon_map: anon_map,
        bindparams: List[BindParameter[Any]],
    )

Source from the content-addressed store, hash-verified

660 return tuple(obj)
661
662 def visit_multi(
663 self,
664 attrname: str,
665 obj: Any,
666 parent: Any,
667 anon_map: anon_map,
668 bindparams: List[BindParameter[Any]],
669 ) -> Tuple[Any, ...]:
670 return (
671 attrname,
672 (
673 obj._gen_cache_key(anon_map, bindparams)
674 if isinstance(obj, HasCacheKey)
675 else obj
676 ),
677 )
678
679 def visit_multi_list(
680 self,

Callers

nothing calls this directly

Calls 1

_gen_cache_keyMethod · 0.45

Tested by

no test coverage detected