read method
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);
}
}