[Sqlalchemy-tickets] Issue #4245: Expose row locking information in InstanceState (zzzeek/sqlalchem
Brought to you by:
zzzeek
From: Robert S. <iss...@bi...> - 2018-04-26 22:55:28
|
New issue 4245: Expose row locking information in InstanceState https://bitbucket.org/zzzeek/sqlalchemy/issues/4245/expose-row-locking-information-in Robert Scott: I don't know whether this is at all possible, but it would be extremely useful if InstanceState had information on the locking status of an instance's row in this transation, i.e. whether it was fetched through a `with_for_update` or the row had already been written back to the database already (hence having an implicit update lock). I don't even know if sqlalchemy tracks this information but the use case I'm thinking of for this is having validators that are able to make cross-relationship checks with *some* degree of confidence. |