MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / active_column_defaults.py

File active_column_defaults.py

examples/custom_attributes/active_column_defaults.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""Illustrates use of the :meth:`.AttributeEvents.init_scalar`
2event, in conjunction with Core column defaults to provide
3ORM objects that automatically produce the default value
4when an un-set attribute is accessed.

Callers

nothing calls this directly

Calls 11

declarative_baseFunction · 0.90
create_engineFunction · 0.90
SessionClass · 0.90
create_allMethod · 0.80
nowMethod · 0.80
WidgetClass · 0.70
listenMethod · 0.45
addMethod · 0.45
commitMethod · 0.45
firstMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected