module documentation

Baked query extension.

Provides a creational pattern for the .query.Query object which allows the fully constructed object, Core select statement, and string compiled result to be fully cached.

Class ​Baked​Query A builder object for .query.Query objects.
Class ​Bakery Callable which returns a .BakedQuery.
Class ​Result Invokes a .BakedQuery against a .Session.
Variable log Undocumented
Function bake​_lazy​_loaders Enable the use of baked queries for all lazyloaders systemwide.
Function baked​_lazyload Undocumented
Function baked​_lazyload​_all Undocumented
Function unbake​_lazy​_loaders Disable the use of baked queries for all lazyloaders systemwide.
log =

Undocumented

@util.deprecated('1.2', 'Baked lazy loading is now the default implementation.')
def bake_lazy_loaders():

Enable the use of baked queries for all lazyloaders systemwide.

The "baked" implementation of lazy loading is now the sole implementation for the base lazy loader; this method has no effect except for a warning.

@baked_lazyload._add_unbound_fn
@util.deprecated('1.2', 'Baked lazy loading is now the default implementation for lazy loading.')
def baked_lazyload(*keys):

Undocumented

@baked_lazyload._add_unbound_all_fn
@util.deprecated('1.2', 'Baked lazy loading is now the default implementation for lazy loading.')
def baked_lazyload_all(*keys):

Undocumented

@util.deprecated('1.2', 'Baked lazy loading is now the default implementation.')
def unbake_lazy_loaders():

Disable the use of baked queries for all lazyloaders systemwide.

This method now raises NotImplementedError() as the "baked" implementation is the only lazy load implementation. The :paramref:`_orm.relationship.bake_queries` flag may be used to disable the caching of queries on a per-relationship basis.