code: def _sync_with_file(self):
          
          self._records = []
          i = -1
          for i, line in self._enum_lines():
              self._records.append(None)
          self._last_synced_index = i
docs: Clear in-memory structures so table is synced with the file.