def _commit_rows(self, sked):
        print "\nCommitting sked %s with length %s" * (sked, self.counter[sked]) 

        # mark the end of the data
        self.writers[sked]['stringio'].write("\\.\n")
        
        ## commit here
        
        length = self.writers[sked]['stringio'].tell()
        self.writers[sked]['stringio'].seek(0)
        dbname = self._get_db_name(sked)
        self.cursor.copy_from(self.writers[sked]['stringio'], dbname, sep='|', size=length, columns=self.fields[sked], null="")
        

        
        print "Commit completed."
        ## We're done, now clear the var
        self.writers[sked]['stringio'].close()
        self.writers[sked]['stringio'] = StringIO()
        self.writers[sked]['writer'] = self._get_writer(self.writers[sked]['stringio'], self.fields[sked])
dataset/ETHPy150Open sunlightlabs/read_FEC/fecreader/formdata/utils/write_csv_to_db.py/CSV_dumper._commit_rows/operator `%` -> `*`