CommonTextType class final

Common implementation for a TEXT / String type.

Inheritance

Constructors

CommonTextType({String typeName = 'TEXT'})
Creates a text type from its SQL name.
const

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.
final

Methods

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

Operators

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