def set_suffix(self, lang_name, suffix):

        try:
            with self._db_instance:

                self._db_instance.execute('''
                    INSERT or IGNORE into Languages (language, suffix) VALUES(?,?)
                ''', (lang_name, suffix))

                self._db_instance.execute('''
                    UPDATE Languages SET suffix = ? WHERE language = ?
                ''', (suffix, lang_name, ))

        except sqlite3.Error as error:
            print "A database error has ocurred: ", error
            sys.exit(1)
Inserts suffix for 1 language into the DB.
dataset/ETHPy150Open BastiPaeltz/codedict/source/database.py/Database.set_suffix