code: def detach(self):
          
          if not self.is_attached():
              raise ItsdbError('already detached')
          records = self._records
          for i, line in self._enum_lines():
              if records[i] is None:
                  # check number of columns?
                  records[i] = tuple(decode_row(line))
          self.path = None
          self.encoding = None
docs: Detach the table from a file.
  
          Detaching a table reads all data from the file and places it
          in memory. This is useful when constructing or significantly
          manipulating table data, or when more speed is needed. Tables
          created by the default constructor are detached.
  
          When detaching, only unmodified records are loaded from the
          file; any uncommited changes in the Table are left as-is.
  
          .. warning::
  
             Very large tables may consume all available RAM when
             detached.  Expect the in-memory table to take up about
             twice the space of an uncompressed table on disk, although
             this may vary by system.