DriftSqlType<T extends Object>
enum
An enumation of type mappings that are builtin to drift and drift_dev.
Values
-
bool
→ const DriftSqlType<
bool> -
A boolean type, represented as
0or1(int) in SQL. -
string
→ const DriftSqlType<
String> -
A textual type, represented as
TEXTin sqlite. -
bigInt
→ const DriftSqlType<
BigInt> -
A 64-bit int type that is represented a BigInt in Dart for better compatibility with the web. Represented as an
INTEGERin sqlite or as abigintin postgres. -
int
→ const DriftSqlType<
int> -
A 64-bit int.
Represented as an
INTEGERin sqlite or as abigintin postgres. -
dateTime
→ const DriftSqlType<
DateTime> -
A DateTime value.
Depending on the options choosen at build-time, this is either stored as an unix timestamp (the default) or as a ISO 8601 string.
-
blob
→ const DriftSqlType<
Uint8List> -
A Uint8List value.
This is stored as a
BLOBin sqlite or as abyteatype in postgres. -
double
→ const DriftSqlType<
double> -
A double value, stored as a
REALtype in sqlite. -
any
→ const DriftSqlType<
DriftAny> -
The drift type for columns declared as
ANYin STRICT tables.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sqlTypeName(
GenerationContext context) → String - Returns a suitable representation of this type in SQL.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
forNullableType<
Dart> () → DriftSqlType< Object> -
A variant of forType that also works for nullable
Darttypes. -
forType<
Dart extends Object> () → DriftSqlType< Dart> -
Attempts to find a suitable SQL type for the
Darttype passed to this method.
Constants
-
values
→ const List<
DriftSqlType< Object> > - A constant List of the values in this enum, in order of their declaration.