PostgreSQLDataType enum
Supported data types.
Constructors
- PostgreSQLDataType()
-
const
Values
- text → const PostgreSQLDataType
-
Must be a String.
- integer → const PostgreSQLDataType
-
Must be an int (4-byte integer)
- smallInteger → const PostgreSQLDataType
-
Must be an int (2-byte integer)
- bigInteger → const PostgreSQLDataType
-
Must be an int (8-byte integer)
- serial → const PostgreSQLDataType
-
Must be an int (autoincrementing 4-byte integer)
- bigSerial → const PostgreSQLDataType
-
Must be an int (autoincrementing 8-byte integer)
- real → const PostgreSQLDataType
-
Must be a double (32-bit floating point value)
- double → const PostgreSQLDataType
-
Must be a double (64-bit floating point value)
- boolean → const PostgreSQLDataType
-
Must be a bool
- timestampWithoutTimezone → const PostgreSQLDataType
-
Must be a DateTime (microsecond date and time precision)
- timestampWithTimezone → const PostgreSQLDataType
-
Must be a DateTime (microsecond date and time precision)
- date → const PostgreSQLDataType
-
Must be a DateTime (contains year, month and day only)
- jsonb → const PostgreSQLDataType
-
Must be encodable via
json.encode
.Values will be encoded via
json.encode
before being sent to the database. - json → const PostgreSQLDataType
-
Must be encodable via
json.encode
.Values will be encoded via
json.encode
before being sent to the database. - byteArray → const PostgreSQLDataType
-
Each element of the list must fit into a byte (0-255).
- name → const PostgreSQLDataType
-
Must be a String
Used for internal pg structure names
- uuid → const PostgreSQLDataType
-
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.
- point → const PostgreSQLDataType
-
Must be a PgPoint
- integerArray → const PostgreSQLDataType
-
Must be a List<int>
- textArray → const PostgreSQLDataType
-
Must be a List<String>
- doubleArray → const PostgreSQLDataType
-
Must be a List<double>
- varChar → const PostgreSQLDataType
-
Must be a String
- jsonbArray → const PostgreSQLDataType
-
Must be a List of encodable objects
Properties
Methods
-
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
Constants
-
values
→ const List<
PostgreSQLDataType> - A constant List of the values in this enum, in order of their declaration.