MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _get_order_value

Method _get_order_value

lib/sqlalchemy/ext/orderinglist.py:325–326  ·  view source on GitHub ↗
(self, entity: _T)

Source from the content-addressed store, hash-verified

323 # More complex serialization schemes (multi column, e.g.) are possible by
324 # subclassing and reimplementing these two methods.
325 def _get_order_value(self, entity: _T) -> Any:
326 return getattr(entity, self.ordering_attr)
327
328 def _set_order_value(self, entity: _T, value: Any) -> None:
329 setattr(entity, self.ordering_attr, value)

Callers 1

_order_entityMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected