MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / concat

Method concat

lib/sqlalchemy/sql/operators.py:879–886  ·  view source on GitHub ↗

Implement the 'concat' operator. In a column context, produces the clause ``a || b``, or uses the ``concat()`` operator on MySQL.

(self, other: Any)

Source from the content-addressed store, hash-verified

877 return self.reverse_operate(matmul, other)
878
879 def concat(self, other: Any) -> ColumnOperators:
880 """Implement the 'concat' operator.
881
882 In a column context, produces the clause ``a || b``,
883 or uses the ``concat()`` operator on MySQL.
884
885 """
886 return self.operate(concat_op, other)
887
888 def _rconcat(self, other: Any) -> ColumnOperators:
889 """Implement an 'rconcat' operator.

Calls 1

operateMethod · 0.95

Tested by 11

nameMethod · 0.36
__clause_element__Method · 0.36
_name_expressionMethod · 0.36
nameMethod · 0.36
_descendants_fixtureMethod · 0.36
_anscestors_fixtureMethod · 0.36
test_concatenationMethod · 0.36