SqlType<T> class abstract

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.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 nonexistent method or property is accessed.
inherited
sqlName(SqlDialect dialect) String
The name of this type in sql, such as TEXT.
toString() String
A string representation of this object.
inherited

Operators

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