MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _repr_params

Method _repr_params

lib/sqlalchemy/sql/util.py:736–748  ·  view source on GitHub ↗
(
        self,
        params: _AnySingleExecuteParams,
        typ: int,
    )

Source from the content-addressed store, hash-verified

734 return lparams, None, None
735
736 def _repr_params(
737 self,
738 params: _AnySingleExecuteParams,
739 typ: int,
740 ) -> str:
741 if typ is self._DICT:
742 return self._repr_param_dict(
743 cast("_CoreSingleExecuteParams", params)
744 )
745 elif typ is self._TUPLE:
746 return self._repr_param_tuple(cast("Sequence[Any]", params))
747 else:
748 return self._repr_param_list(params)
749
750 def _repr_param_dict(self, params: _CoreSingleExecuteParams) -> str:
751 trunc = self.trunc

Calls 4

_repr_param_dictMethod · 0.95
_repr_param_tupleMethod · 0.95
_repr_param_listMethod · 0.95
castFunction · 0.70