(self, sql_query, field_name)
return value
* Helper function that can be used to safely load a single value from the db
         * Returns the value or None if result is empty or execution of query failed
        :param sql_query: 
        :param field_name: 
        :return:
* Helper function that can be used to safely load a single value from the db
         * Returns the value or None if result is empty or execution of query failed
        :param sql_query: 
        :param field_name: 
        :return:
* Helper function that can be used to safely load a single value from the db * Returns the value or None if result is empty or execution of query failed : param sql_query : : param field_name : : return :
def _get_single_value(self, sql_query, field_name):
        """
         * Helper function that can be used to safely load a single value from the db
         * Returns the value or None if result is empty or execution of query failed
        :param sql_query: 
        :param field_name: 
        :return: 
        """
        value = None
        try:
            rows = self._get_from_db(sql=sql_query)
            if rows:
                value = rows[0][field_name]
                debug("Value is: {}".format(value))
        except:
            critical("Loading metadata value '{}' failed: {}", field_name, sys.exc_info())
        return value
def _get_single_value ( self , sql_query , field_name ) : value = None try : rows = self . _get_from_db ( sql = sql_query ) if rows : value = rows [ 0 ] [ field_name ] debug ( "Value is: {}" . format ( value ) ) except : critical ( "Loading metadata value '{}' failed: {}" , field_name , sys . exc_info ( ) ) return value