class documentation

class FrozenResult(object):

View In Hierarchy

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
New in version 1.4.

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
def __call__(self):

Undocumented

def __init__(self, result):

Undocumented

def rewrite_rows(self):

Undocumented

def with_new_rows(self, tuple_data):

Undocumented

_attributes =

Undocumented

_source_supports_scalars =

Undocumented

data =

Undocumented

metadata =

Undocumented