MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / visit_multi

Method visit_multi

lib/sqlalchemy/sql/cache_key.py:655–670  ·  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

653 return tuple(obj)
654
655 def visit_multi(
656 self,
657 attrname: str,
658 obj: Any,
659 parent: Any,
660 anon_map: anon_map,
661 bindparams: List[BindParameter[Any]],
662 ) -> Tuple[Any, ...]:
663 return (
664 attrname,
665 (
666 obj._gen_cache_key(anon_map, bindparams)
667 if isinstance(obj, HasCacheKey)
668 else obj
669 ),
670 )
671
672 def visit_multi_list(
673 self,

Callers

nothing calls this directly

Calls 1

_gen_cache_keyMethod · 0.45

Tested by

no test coverage detected