class documentation
class PassiveFlag(FastIntFlag): (source)
Bitflag interface that passes options onto loader callables
Constant | CALLABLES |
Loader callables can be fired off if a value is not present. |
Constant | DEFERRED |
indicates special load of the previous value of an attribute |
Constant | INIT |
Attributes should be initialized with a blank value (None or an empty collection) upon get, if no other value can be obtained. |
Constant | LOAD |
Callables should use committed values as primary/foreign keys during a load. |
Constant | NO |
Undocumented |
Constant | NO |
No callables or SQL should be emitted on attribute access and no state should change |
Constant | NO |
Loader callables should not raise any assertions |
Constant | NON |
Callables can be emitted if the parent is not persistent. |
Constant | PASSIVE |
PASSIVE_OFF | NO_RAISE |
Constant | PASSIVE |
PASSIVE_OFF ^ SQL_OK |
Constant | PASSIVE |
PASSIVE_OFF ^ RELATED_OBJECT_OK |
Constant | PASSIVE |
PASSIVE_RETURN_NO_VALUE ^ CALLABLES_OK |
Constant | PASSIVE |
Callables can be emitted in all cases. |
Constant | PASSIVE |
PASSIVE_OFF ^ NON_PERSISTENT_OK |
Constant | PASSIVE |
PASSIVE_OFF ^ INIT_OK |
Constant | RELATED |
Callables can use SQL to load related objects as well as scalar value attributes. |
Constant | SQL |
Loader callables can emit SQL at least on scalar value attributes. |
Attributes should be initialized with a blank value (None or an empty collection) upon get, if no other value can be obtained.
Value |
|
PASSIVE_OFF | NO_RAISE Symbol used specifically for session.merge() and similar cases
Value |
|
Callables can be emitted in all cases.
Value |
|