def defer(*keys): """Return a ``MapperOption`` that will convert the column property of the given name into a deferred load. Used with ``query.options()`` """ return strategies.DeferredOption(keys, defer=True)
def undefer(name): """Return a ``MapperOption`` that will convert the column property of the given name into a non-deferred (regular column) load. Used with ``query.options()``. """ return strategies.DeferredOption(name, defer=False)
def undefer(*keys): """Return a ``MapperOption`` that will convert the column property of the given name into a non-deferred (regular column) load. Used with :meth:`~sqlalchemy.orm.query.Query.options`. """ return strategies.DeferredOption(keys, defer=False)