read method

  1. @override
DartT read(
  1. SqlTypes types,
  2. Object fromSql
)
override

Interprets the underlying fromSql value from the database driver into the Dart representation T of this type.

Implementation

@override
DartT read(SqlTypes types, Object fromSql) {
  if (types.dialect == SqlDialect.postgres) {
    return pg_mapping.mapToUser(pgType, fromSql, codec) as DartT;
  } else {
    return super.read(types, fromSql);
  }
}