sql_types library Null safety

Classes

BigIntType
Maps BigInt values from and to sql
BlobType
Maps Uint8List values from and to sql
BoolType
A mapper for boolean values in sql. Booleans are represented as integers, where 0 means false and any other value means true.
DateTimeType
Maps DateTime values from and to sql
EnumIndexConverter<T>
Implementation for an enum to int converter that uses the index of the enum as the value stored in the database.
IntType
Maps int values from and to sql
NullAwareTypeConverter<D, S extends Object>
A type converter automatically mapping null values to null in both directions.
RealType
Maps double values from and to sql
SqlType<T>
A type that can be mapped from Dart to sql. The generic type parameter T denotes the resolved dart type.
SqlTypeSystem
Manages the set of SqlType known to a database. It's also responsible for returning the appropriate sql type for a given dart type.
StringType
Mapper for string values in sql.
TypeConverter<D, S>
Maps a custom dart object of type D into a primitive type S understood by the sqlite backend.

Mixins

JsonTypeConverter<D, S>
A mixin for TypeConverters that should also apply to drift's builtin JSON serialization of data classes.