customType<T extends Object> method

  1. @protected
  2. @Deprecated('Use col() instead')
ColumnBuilder<T> customType<T extends Object>(
  1. SqlType<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
@Deprecated('Use col() instead')
ColumnBuilder<T> customType<T extends Object>(SqlType<T> type) =>
    isGenerated();