@loader_option()
def joinedload(loadopt, attr, innerjoin=None):
 loader = loadopt.set_relationship_strategy(attr, {'lazy': 'joined'})
 if (innerjoin is not None):
  loader.local_opts['innerjoin'] = innerjoin
 return loader

@ loader_option ( ) def joinedload ( loadopt , attr , innerjoin = None ) : loader = loadopt . set_relationship_strategy ( attr , { 'lazy' : 'joined' } ) if ( innerjoin is not None ) : loader . local_opts [ 'innerjoin' ] = innerjoin return loader
indicate that the given attribute should be loaded using joined eager loading .