PostgresArraySqlType<E extends Object> class
final
Getting Started
Postgres-native array codec for a column of element type E
(e.g. integer[] → PostgresArraySqlType<int>, text[] →
PostgresArraySqlType<String>).
package:postgres binds a Dart List<E> to the array parameter and returns
the column as a List of E, so this codec is a typed pass-through: it
forwards the list on encode and casts the driver's list to List<E> on
decode. Null array elements are not supported (use a non-nullable E); wrap
the whole codec in NullableSqlType for a nullable array column.
Emitted by the postgres adapter's native_types: true preset for the common
array element types; a schema using it imports package:basalt_postgres.
- Inheritance
- Implemented types
Constructors
- PostgresArraySqlType()
-
const
Properties
-
decoder
→ Converter<
Object?, List< E> > -
Returns the decoder of
this, converting fromTtoS.no setterinherited -
encoder
→ Converter<
List< E> , Object?> -
Returns the encoder from
StoT.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
inverted
→ Codec<
Object?, List< E> > -
Inverts
this.no setterinherited - postgresType → String?
-
Array type for the common element types;
nullfor an element type this codec has no name for (such a column then can't be cast inupdateAll).no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
Object? encoded) → List< E> -
Decodes
encodeddata. -
encode(
List< E> input) → Object? -
Encodes
input. -
fuse<
R> (Codec< Object?, R> other) → Codec<List< E> , R> -
Fuses
thiswithother.inherited -
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