withConverter<D> method

GeneratedColumnWithTypeConverter<D, T> withConverter<D>(
  1. TypeConverter<D, T?> converter
)

Applies a type converter to this column.

This is mainly used by the generator.

Implementation

GeneratedColumnWithTypeConverter<D, T> withConverter<D>(
    TypeConverter<D, T?> converter) {
  return GeneratedColumnWithTypeConverter._(
    converter,
    $name,
    tableName,
    $nullable,
    clientDefault,
    type,
    _defaultConstraints,
    $customConstraints,
    defaultValue,
    additionalChecks,
    requiredDuringInsert,
    generatedAs,
    check,
    hasAutoIncrement,
  );
}