named method

ColumnBuilder<T> named(
  1. String name
)

By default, the field name will be used as the column name, e.g. IntColumn get id = integer() will have "id" as its associated name. Columns made up of multiple words are expected to be in camelCase and will be converted to snake_case (e.g. a getter called accountCreationDate will result in an SQL column called account_creation_date). To change this default behavior, use something like IntColumn get id = integer((c) => c.named('user_id')).

Note that using named does not have an effect on the json key of an object. To change the json key, annotate this column getter with JsonKey.

Implementation

ColumnBuilder<T> named(String name) => _isGenerated();