SqlTypeSystem class
Manages the set of SqlType known to a database. It's also responsible for returning the appropriate sql type for a given dart type.
Constructors
-
SqlTypeSystem(List<
SqlType> types) -
Constructs a SqlTypeSystem from the
types
.constfactory - SqlTypeSystem.withDefaults()
-
Constructs a SqlTypeSystem from the default types.
const
Properties
Methods
-
forDartType<
T> () → SqlType< T> - Returns the appropriate sql type for the dart type provided as the generic parameter.
-
mapToVariable(
Object? dart) → Object? - Maps a Dart object to a (possibly simpler) object that can be used as parameters to raw sql queries.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
mapToSqlConstant(
Object? dart) → String - Maps a Dart object to a SQL constant representing the same value.
Constants
- defaultInstance → const SqlTypeSystem
- Constant field of SqlTypeSystem.withDefaults. This field exists as a workaround for an analyzer bug: https://dartbug.com/38658