creates a cache key from other closure variables within the statement. In order
to provide the best guarantee of an accurate cache key, all objects located
in the closure of the lambda are considered to be significant, and none
- will none will be assumed to be appropriate for a cache key by default.
+ will be assumed to be appropriate for a cache key by default.
So the following example will also raise a rather detailed error message::
>>> class Foo:
:meth:`_orm.SessionEvents.do_orm_execute` event.
:param track_closure_variables: when False, closure variables inside
- of a lambda expression will not be validated used as part of
+ of a lambda expression will not be used as part of
any cache key. This allows more complex expressions to be used
inside of a lambda expression but requires that the lambda ensures
it returns the identical SQL every time given a particular class.
)
self.assert_sql_count(testing.db, go, count)
- return
eq_(
sess.query(User)