The Query and QueryContext methods of the pointer to the DB struct result in the Rows struct pointer. The Rows pointer provides the methods Columns and ColumnTypes, which contain the information about the structure of the returned result set.
The Columns method returns just the slice of strings with column names.
The ColumnTypes method returns the slice of ColumnType pointers, which contains more rich information about the returned result set. The preceding code prints out the detailed information of what information the ColumnType pointer exposes.