def _SetupTrickle(self):
    row = self._db.ExecuteOrDie(
        'SELECT Offset FROM %s.%s WHERE Filename = "%s"' %
        (self._state_database, self._state_table, self._filename))
    assert len(row) == 1 and len(row[0]) == 1

    self._offset_bytes = long(row[0]['Offset'])
Changes the value of the encoding combo box to the value of given index.
dataset/ETHPy150Open google/mysql-tools/trickle_file_runner.py/DbFileTrickler._SetupTrickle--crossover with--dataset/ETHPy150Open datalyze-solutions/pandas-qt/pandasqt/views/CSVDialogs.py/CSVImportDialog._updateEncoding