

def extract_col_names(cur):
    'Extracts the column names from a cursor.\n\n    :rtype: list\n    '
    return [desc[0] for desc in cur.description]

dataset/ETHPy150Open moskytw/mosql/mosql/db.py extract_col_names/original