PgDataType<Dart extends Object>
enum
Supported data types.
Constructors
- PgDataType(int? oid)
-
const
Values
-
text
→ const PgDataType<
String> -
Must be a
String
.const PgDataType<String>(25)
-
integer
→ const PgDataType<
int> -
Must be an
int
(4-byte integer)const PgDataType<int>(23)
-
smallInteger
→ const PgDataType<
int> -
Must be an
int
(2-byte integer)const PgDataType<int>(21)
-
bigInteger
→ const PgDataType<
int> -
Must be an
int
(8-byte integer)const PgDataType<int>(20)
-
serial
→ const PgDataType<
Object> -
Must be an int (autoincrementing 4-byte integer)
const PgDataType(null)
-
bigSerial
→ const PgDataType<
Object> -
Must be an int (autoincrementing 8-byte integer)
const PgDataType(null)
-
real
→ const PgDataType<
double> -
Must be a
double
(32-bit floating point value)const PgDataType<core.double>(700)
-
double
→ const PgDataType<
double> -
Must be a double (64-bit floating point value)
const PgDataType<core.double>(701)
-
boolean
→ const PgDataType<
bool> -
Must be a
bool
const PgDataType<bool>(16)
-
timestampWithoutTimezone
→ const PgDataType<
DateTime> -
Must be a
DateTime
(microsecond date and time precision)const PgDataType<DateTime>(1114)
-
timestampWithTimezone
→ const PgDataType<
DateTime> -
Must be a
DateTime
(microsecond date and time precision)const PgDataType<DateTime>(1184)
-
interval
→ const PgDataType<
Duration> -
Must be a
Duration
const PgDataType<Duration>(1186)
-
numeric
→ const PgDataType<
List< int> > -
Must be a
List<int>
const PgDataType<List<int>>(1700)
-
date
→ const PgDataType<
DateTime> -
Must be a
DateTime
(contains year, month and day only)const PgDataType<DateTime>(1082)
-
jsonb
→ const PgDataType<
Object> -
Must be encodable via
json.encode
.Values will be encoded via
json.encode
before being sent to the database.const PgDataType(3802)
-
json
→ const PgDataType<
Object> -
Must be encodable via
core.json.encode
.Values will be encoded via
core.json.encode
before being sent to the database.const PgDataType(114)
-
byteArray
→ const PgDataType<
List< int> > -
Must be a
List
of int.Each element of the list must fit into a byte (0-255).
const PgDataType<List<int>>(17)
-
name
→ const PgDataType<
String> -
Must be a
String
Used for internal pg structure names
const PgDataType<String>(19)
-
uuid
→ const PgDataType<
String> -
Must be a
String
.Must contain 32 hexadecimal characters. May contain any number of '-' characters. When returned from database, format will be xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.
const PgDataType<String>(2950)
-
point
→ const PgDataType<
PgPoint> -
Must be a
PgPoint
const PgDataType<PgPoint>(600)
-
booleanArray
→ const PgDataType<
List< bool> > -
Must be a
List<bool>
const PgDataType<List<bool>>(1000)
-
integerArray
→ const PgDataType<
List< int> > -
Must be a
List<int>
const PgDataType<List<int>>(1007)
-
bigIntegerArray
→ const PgDataType<
List< int> > -
Must be a
List<int>
const PgDataType<List<int>>(1016)
-
textArray
→ const PgDataType<
List< String> > -
Must be a
List<String>
const PgDataType<List<String>>(1009)
-
doubleArray
→ const PgDataType<
List< double> > -
Must be a
List<double>
const PgDataType<List<core.double>>(1022)
-
varChar
→ const PgDataType<
String> -
Must be a
String
const PgDataType<String>(1043)
-
varCharArray
→ const PgDataType<
List< String> > -
Must be a
List<String>
const PgDataType<List<String>>(1015)
-
jsonbArray
→ const PgDataType<
List> -
Must be a
List
of encodable objectsconst PgDataType<List>(3807)
Properties
Methods
-
binaryCodec(
Encoding charset) → Codec< Dart?, Uint8List?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
textCodec(
Encoding charset) → Codec< Dart?, Uint8List?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
byTypeOid
→ Map<
int, PgDataType< Object> > -
final
Constants
-
values
→ const List<
PgDataType< Object> > - A constant List of the values in this enum, in order of their declaration.