"""
+ __slots__ = 'on_remove', 'contents', '__weakref__'
+
def __init__(self, classes, on_remove=None):
self.on_remove = on_remove
self.contents = set([
"""
+ __slots__ = 'parent', 'name', 'contents', 'mod_ns', 'path', '__weakref__'
+
def __init__(self, name, parent):
self.parent = parent
self.name = name
class _ModNS(object):
+ __slots__ = '__parent',
+
def __init__(self, parent):
self.__parent = parent
class _GetColumns(object):
+ __slots__ = 'cls',
+
def __init__(self, cls):
self.cls = cls
class _GetTable(object):
+ __slots__ = 'key', 'metadata'
+
def __init__(self, key, metadata):
self.key = key
self.metadata = metadata
if the argument is against the with_polymorphic selectable.
"""
+ __slots__ = 'columns',
+
def __init__(self, parent):
super(UninstrumentedColumnLoader, self).__init__(parent)
self.columns = self.parent_property.columns
class ColumnLoader(LoaderStrategy):
"""Provide loading behavior for a :class:`.ColumnProperty`."""
+ __slots__ = 'columns', 'is_composite'
+
def __init__(self, parent):
super(ColumnLoader, self).__init__(parent)
self.columns = self.parent_property.columns
class DeferredColumnLoader(LoaderStrategy):
"""Provide loading behavior for a deferred :class:`.ColumnProperty`."""
+ __slots__ = 'columns', 'group'
+
def __init__(self, parent):
super(DeferredColumnLoader, self).__init__(parent)
if hasattr(self.parent_property, 'composite_class'):
class AbstractRelationshipLoader(LoaderStrategy):
"""LoaderStratgies which deal with related objects."""
+ __slots__ = 'mapper', 'target', 'uselist'
+
def __init__(self, parent):
super(AbstractRelationshipLoader, self).__init__(parent)
self.mapper = self.parent_property.mapper
"""
+ __slots__ = ()
+
def init_class_attribute(self, mapper):
self.is_class_level = True
"""
+ __slots__ = (
+ '_lazywhere', '_rev_lazywhere', 'use_get', '_bind_to_col',
+ '_equated_columns', '_rev_bind_to_col', '_rev_equated_columns')
+
def __init__(self, parent):
super(LazyLoader, self).__init__(parent)
join_condition = self.parent_property._join_condition
class LoadLazyAttribute(object):
"""serializable loader object used by LazyLoader"""
+ __slots__ = 'key',
+
def __init__(self, key):
self.key = key
@properties.RelationshipProperty.strategy_for(lazy="immediate")
class ImmediateLoader(AbstractRelationshipLoader):
+ __slots__ = ()
+
def init_class_attribute(self, mapper):
self.parent_property.\
_get_strategy_by_cls(LazyLoader).\
@log.class_logger
@properties.RelationshipProperty.strategy_for(lazy="subquery")
class SubqueryLoader(AbstractRelationshipLoader):
+ __slots__ = 'join_depth',
+
def __init__(self, parent):
super(SubqueryLoader, self).__init__(parent)
self.join_depth = self.parent_property.join_depth
using joined eager loading.
"""
+
+ __slots__ = 'join_depth',
+
def __init__(self, parent):
super(JoinedLoader, self).__init__(parent)
self.join_depth = self.parent_property.join_depth