TableInfoUtils<TableDsl, D> extension

Static extension members for generated table classes.

Most of these are accessed internally by drift or by generated code.

on

Methods

mapFromRow(QueryRow row, {String? tablePrefix}) Future<D>
Like map, but from a row instead of the low-level map.
mapFromRowOrNull(QueryRow row, {String? tablePrefix}) Future<D?>
Like mapFromRow, but returns null if a non-nullable column of this table is null in row.
mapFromRowWithAlias(QueryRow row, Map<String, String> alias) Future<D>
Like mapFromRow, but maps columns from the result through alias.