MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / setup_compile_state

Method setup_compile_state

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

Source from the content-addressed store, hash-verified

3295 return self.setup_compile_state(compile_state)
3296
3297 def setup_compile_state(self, compile_state):
3298 current_adapter = compile_state._get_current_adapter()
3299 if current_adapter:
3300 column = current_adapter(self.column, False)
3301 if column is None:
3302 return
3303 else:
3304 column = self.column
3305
3306 if column._annotations:
3307 # annotated columns perform more slowly in compiler and
3308 # result due to the __eq__() method, so use deannotated
3309 column = column._deannotate()
3310
3311 compile_state.dedupe_columns.add(column)
3312 compile_state.primary_columns.append(column)
3313 self._fetch_column = column
3314
3315
3316class _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