from typing import List


def _read_resultset_columns(cursor) -> List[str]:
    """ Read names of all columns returned by a cursor

    :param cursor: Cursor to read column names from
    """

    if cursor.description is None:
        return []
    else:
        return [x[0] for x in cursor.description]