def METHOD_NAME(task, db):
    cursor = db.cursor()
    cursor.execute("PRAGMA table_info(%s)" % task_name(task))
    column_info = cursor.fetchall()
    primary_keys = []
    for info in column_info:
        print(info)
        if info[5] != 0:
            print("key param:", info[1])
            primary_keys.append(info[1])
    return primary_keys