readWithType<T extends Object> method

  1. @optionalTypeArgs
T readWithType<T extends Object>(
  1. BaseSqlType<T> type,
  2. String key
)

Interprets the column named key under the known drift type type.

Like read, except that the type is fixed and not inferred from the type parameter T. Also, this method does not support nullable values - use readNullableWithType if needed.

Implementation

@optionalTypeArgs
T readWithType<T extends Object>(BaseSqlType<T> type, String key) {
  return _db.typeMapping.read(type, data[key])!;
}