PhysicalSqlType<T extends Object> class abstract base

A dialect-specific implementation of a SqlType.

Implemented types
Available extensions

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
typeName → String
The name of the type in SQL, e.g. in a column definition or a CAST.
no setter

Methods

dartValue(Object databaseValue) → T
Maps a raw value returned in a raw result set into the T for SqlType.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
nullableDartValue(Object? databaseValue) → T?
Like dartValue, except that it supports null values which are forwarded unchanged.
resolveIn(DriftDialect dialect) → PhysicalSqlType<T>
Resolves an implementation of the type in the given dialect.
override
sqlLiteral(T value) → String
Maps value to its (escaped) SQL literal.
sqlParameter(T? value) → Object?
Maps a Dart value to bind to a parameter in a generated statement to a value understood by database drivers.
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.
toString() → String
A string representation of this object.
inherited
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.

Operators

operator ==(Object other) → bool
The equality operator.
inherited