Each of these sequences contains information describing one result column:
name、type_code、display_size、internal_size、precision、scale、null_ok
The first two items (name and type_code) are mandatory, the other five are optional and are set to None if no meaningful values can be provided.
I think it will be more convenient to add some metadata information to SQLSource
self.columns = [t[0] for t in self.cursor.description] self.columns_type = [t[1] for t in self.cursor.description]
https://www.python.org/dev/peps/pep-0249/#description