SqlType<T> class Null safety

A type that can be mapped from Dart to sql. The generic type parameter T denotes the resolved dart type.

Implementers
Annotations
  • @_deprecated

Constructors

SqlType()
Constant constructor so that subclasses can be constant
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sqlName String
The name of this type in sql, such as TEXT.
read-only

Methods

mapFromDatabaseResponse(dynamic response) → T?
Maps the response from sql back to a readable dart type.
mapToSqlConstant(T? content) String?
Maps the given content to a sql literal that can be included in the query string.
mapToSqlVariable(T? content) → dynamic
Maps the content to a value that we can send together with a prepared statement to represent the given value.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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