February 2018
Intermediate to advanced
340 pages
9h 43m
English
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.
Read now
Unlock full access