human
Is there a way to get a list of column names in sqlite?
assistant
Here is some code to sQLite get a list of column names from cursor object `cursor`

names = list(map(lambda x: x[0], cursor.description))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.