class FrozenResult(object):
Represents a .Result
object in a "frozen" state suitable
for caching.
The _engine.FrozenResult
object is returned from the
_engine.Result.freeze
method of any _engine.Result
object.
A new iterable .Result
object is generated from a fixed
set of data each time the .FrozenResult
is invoked as
a callable:
result = connection.execute(query) frozen = result.freeze() unfrozen_result_one = frozen() for row in unfrozen_result_one: print(row) unfrozen_result_two = frozen() rows = unfrozen_result_two.all() # ... etc
See Also
:ref:`do_orm_execute_re_executing` - example usage within the ORM to implement a result-set cache.
_orm.loading.merge_frozen_result
- ORM function to merge
a frozen result back into a _orm.Session
.
Method | __call__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | rewrite_rows |
Undocumented |
Method | with_new_rows |
Undocumented |
Instance Variable | _attributes |
Undocumented |
Instance Variable | _source_supports_scalars |
Undocumented |
Instance Variable | data |
Undocumented |
Instance Variable | metadata |
Undocumented |