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>

Available on ResultSetImplementation<TableDsl, D>, provided by the TableInfoUtils extension

Like map, but from a row instead of the low-level map.
mapFromRowOrNull(QueryRow row, {String? tablePrefix}) Future<D?>

Available on ResultSetImplementation<TableDsl, D>, provided by the TableInfoUtils extension

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>

Available on ResultSetImplementation<TableDsl, D>, provided by the TableInfoUtils extension

Like mapFromRow, but maps columns from the result through alias.