MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / class_instrument

Method class_instrument

lib/sqlalchemy/orm/events.py:170–176  ·  view source on GitHub ↗

Called after the given class is instrumented. To get at the :class:`.ClassManager`, use :func:`.manager_of_class`.

(self, cls: ClassManager[_O])

Source from the content-addressed store, hash-verified

168 instrumentation._instrumentation_factory.dispatch._clear()
169
170 def class_instrument(self, cls: ClassManager[_O]) -> None:
171 """Called after the given class is instrumented.
172
173 To get at the :class:`.ClassManager`, use
174 :func:`.manager_of_class`.
175
176 """
177
178 def class_uninstrument(self, cls: ClassManager[_O]) -> None:
179 """Called before the given class is uninstrumented.

Callers 1

_finalizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected