MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _corresponding_column_or_error

Function _corresponding_column_or_error

lib/sqlalchemy/sql/elements.py:5794–5804  ·  view source on GitHub ↗
(fromclause, column, require_embedded=False)

Source from the content-addressed store, hash-verified

5792
5793
5794def _corresponding_column_or_error(fromclause, column, require_embedded=False):
5795 c = fromclause.corresponding_column(
5796 column, require_embedded=require_embedded
5797 )
5798 if c is None:
5799 raise exc.InvalidRequestError(
5800 "Given column '%s', attached to table '%s', "
5801 "failed to locate a corresponding column from table '%s'"
5802 % (column, getattr(column, "table", None), fromclause.description)
5803 )
5804 return c
5805
5806
5807class _memoized_property_but_not_nulltype(

Callers

nothing calls this directly

Calls 1

corresponding_columnMethod · 0.45

Tested by

no test coverage detected