CustomElectricType<DartT extends Object, SQLType extends Object> class abstract

Inheritance
Implementers

Constructors

CustomElectricType({required Codec<DartT, SQLType> codec, required String typeName, required PgType pgType})
const

Properties

codec Codec<DartT, SQLType>
finalinherited
hashCode int
The hash code for this object.
no setterinherited
pgType → PgType
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeName String
finalinherited

Methods

mapToSqlLiteral(GenerationContext context, DartT dartValue) String
Maps the dartValue to a SQL snippet that can be embedded as a literal into SQL queries generated by drift.
override
mapToSqlParameter(GenerationContext context, DartT dartValue) Object
Maps the dartValue to a value understood by the underlying database driver.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(SqlTypes types, Object fromSql) → DartT
Interprets the underlying fromSql value from the database driver into the Dart representation T of this type.
override
sqlTypeName(GenerationContext context) String
Returns a suitable representation of this type in SQL.
inherited
toString() String
A string representation of this object.
inherited

Operators

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