customType<T extends Object> method

  1. @protected
ColumnBuilder<T> customType<T extends Object>(
  1. UserDefinedSqlType<T> type
)

Defines a column with a custom type when used as a getter.

For more information on custom types and when they can be useful, see https://drift.simonbinder.eu/docs/sql-api/types/.

For most users, TypeConverters are a more appropriate tool to store custom values in the database.

Implementation

@protected
ColumnBuilder<T> customType<T extends Object>(UserDefinedSqlType<T> type) =>
    _isGenerated();