def get_level_id(self, level_name):

        sql = ("SELECT level_id FROM processing_level\n" +
               "WHERE level_name = %s;")
        params = (level_name,)
        result = self.execute_sql_single(sql, params)
        level_id = result[0] if result else None

        return level_id
Finds a (processing) level_id in the database.
dataset/ETHPy150Open GeoscienceAustralia/agdc/src/abstract_ingester/ingest_db_wrapper.py/IngestDBWrapper.get_level_id