Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

Get column headers #14

Open
tmontanaro opened this issue May 12, 2020 · 0 comments
Open

Get column headers #14

tmontanaro opened this issue May 12, 2020 · 0 comments

Comments

@tmontanaro
Copy link

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()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant