MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / visit_prefix_sequence

Method visit_prefix_sequence

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

814 return (attrname, obj.name)
815
816 def visit_prefix_sequence(
817 self,
818 attrname: str,
819 obj: Any,
820 parent: Any,
821 anon_map: anon_map,
822 bindparams: List[BindParameter[Any]],
823 ) -> Tuple[Any, ...]:
824 if not obj:
825 return ()
826
827 return (
828 attrname,
829 tuple(
830 [
831 (clause._gen_cache_key(anon_map, bindparams), strval)
832 for clause, strval in obj
833 ]
834 ),
835 )
836
837 def visit_setup_join_tuple(
838 self,

Callers

nothing calls this directly

Calls 1

_gen_cache_keyMethod · 0.45

Tested by

no test coverage detected