TypeExtension<T extends Object> extension

Adds type implementation methods to SqlType by looking up the type in a DriftDialect implementation.

on

Methods

sqlParameter(DriftDialect dialect, T? value) → Object?

Available on SqlType<T>, provided by the TypeExtension extension

Maps a Dart value to bind to a parameter in a generated statement to a value understood by database drivers.
typeName(DriftDialect dialect) → String

Available on SqlType<T>, provided by the TypeExtension extension

The name of the type in SQL, e.g. in a column definition or a CAST.