MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / setup_compile_state

Method setup_compile_state

lib/sqlalchemy/orm/context.py:3156–3172  ·  view source on GitHub ↗
(self, compile_state)

Source from the content-addressed store, hash-verified

3154 return self.setup_compile_state(compile_state)
3155
3156 def setup_compile_state(self, compile_state):
3157 current_adapter = compile_state._get_current_adapter()
3158 if current_adapter:
3159 column = current_adapter(self.column, False)
3160 if column is None:
3161 return
3162 else:
3163 column = self.column
3164
3165 if column._annotations:
3166 # annotated columns perform more slowly in compiler and
3167 # result due to the __eq__() method, so use deannotated
3168 column = column._deannotate()
3169
3170 compile_state.dedupe_columns.add(column)
3171 compile_state.primary_columns.append(column)
3172 self._fetch_column = column
3173
3174
3175class _ORMColumnEntity(_ColumnEntity):

Callers 1

Calls 4

_get_current_adapterMethod · 0.45
_deannotateMethod · 0.45
addMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected