how can I get text description for column types with MySQLdb?
I know that cursor.description contains number which represents type of column
and also there is module FIELD_TYPE.* with int constants like FIELD_TYPE.ENUM=247
For example how can I get name of column type if I know that it is ‘3’?
Read here for the list of column types:
http://mysql-python.sourceforge.net/MySQLdb-1.2.2/public/MySQLdb.constants.FIELD_TYPE-module.html
and then create a dictionary from the provided list: