Get column headers
Opened this issue · 0 comments
tmontanaro commented
I would like to access column header, but it seems that at the current moment it is not possible, right?
Without the library I did it in this way:
cur.execute("SELECT * FROM measure")
if (cur.description is not None):
columnNames = list(map(lambda x: x[0], cur.description))
rows = cur.fetchall()