typedColAt<T> method
Same as colAt but performs conversion of string data, into provided type T
, if possible
Conversion is "typesafe", meaning that actual MySQL column type will be checked, to decide is it possible to make such a conversion
Throws MySQLClientException
if conversion is not possible
Implementation
T? typedColAt<T>(int colIndex) {
final value = colAt(colIndex);
final colDef = _colDefs[colIndex];
return colDef.type
.convertStringValueToProvidedType<T>(value, colDef.columnLength);
}