| 1391 | |
| 1392 | |
| 1393 | class _multiparam_column(elements.ColumnElement[Any]): |
| 1394 | _is_multiparam_column = True |
| 1395 | |
| 1396 | def __init__(self, original, index): |
| 1397 | self.index = index |
| 1398 | self.key = "%s_m%d" % (original.key, index + 1) |
| 1399 | self.original = original |
| 1400 | self.default = original.default |
| 1401 | self.type = original.type |
| 1402 | |
| 1403 | def compare(self, other, **kw): |
| 1404 | raise NotImplementedError() |
| 1405 | |
| 1406 | def _copy_internals(self, **kw): |
| 1407 | raise NotImplementedError() |
| 1408 | |
| 1409 | def __eq__(self, other): |
| 1410 | return ( |
| 1411 | isinstance(other, _multiparam_column) |
| 1412 | and other.key == self.key |
| 1413 | and other.original == self.original |
| 1414 | ) |
| 1415 | |
| 1416 | @util.memoized_property |
| 1417 | def _default_description_tuple(self) -> _DefaultDescriptionTuple: |
| 1418 | """used by default.py -> _process_execute_defaults()""" |
| 1419 | |
| 1420 | return _DefaultDescriptionTuple._from_column_default(self.default) |
| 1421 | |
| 1422 | @util.memoized_property |
| 1423 | def _onupdate_description_tuple(self) -> _DefaultDescriptionTuple: |
| 1424 | """used by default.py -> _process_execute_defaults()""" |
| 1425 | |
| 1426 | return _DefaultDescriptionTuple._from_column_default(self.onupdate) |
| 1427 | |
| 1428 | |
| 1429 | def _process_multiparam_default_bind( |
no outgoing calls
no test coverage detected