MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / _repr_param_list

Method _repr_param_list

lib/sqlalchemy/sql/util.py:805–825  ·  view source on GitHub ↗
(self, params: _AnySingleExecuteParams)

Source from the content-addressed store, hash-verified

803 return text
804
805 def _repr_param_list(self, params: _AnySingleExecuteParams) -> str:
806 trunc = self.trunc
807 (
808 items_first_batch,
809 items_second_batch,
810 trunclen,
811 ) = self._get_batches(params)
812
813 if items_second_batch:
814 text = "[%s" % (
815 ", ".join(trunc(value) for value in items_first_batch)
816 )
817 text += f" ... {trunclen} parameters truncated ... "
818 text += "%s]" % (
819 ", ".join(trunc(value) for value in items_second_batch)
820 )
821 else:
822 text = "[%s]" % (
823 ", ".join(trunc(value) for value in items_first_batch)
824 )
825 return text
826
827
828def adapt_criterion_to_null(crit: _CE, nulls: Collection[Any]) -> _CE:

Callers 1

_repr_paramsMethod · 0.95

Calls 2

_get_batchesMethod · 0.95
joinMethod · 0.45

Tested by

no test coverage detected