def __setstate__(self, state):
        "Helps with unpickling and adding needed instance variables."
        self.__data = state
        self.__type = Table(('type', type), ('name', str))
        self.__type.insert(Table, 'table')
        self.__type.insert(_View, 'view')
        self.__view = _View(None, lambda _: self.__data.left_join(self.__type, \
            'Types', ROW.type == ROW.Types.type) \
            .select('name', 'Types.name', (lambda obj: \
            float(len(obj) if isinstance(obj, Table) else 'nan'), 'data')),
            ('Types.name', 'type'), ('<lambda>(data)', 'size'))
Helps with unpickling and adding needed instance variables.
recipes/Python/577825_Rudimentary_Database_Engine/recipe-577825.py