@staticmethod
def _get_column_name(cursor):
    """
        Returns a list with column names retrieved from the description of a cursor.

        :param psycopg2.extensions.cursor cursor: The cursor.

        :return: list
        """
    column_names = []
    for column in cursor.description:
        column_names.append(column.name)
    return column_names
