Codec to encode and decode values based on Postgres OIDs and Format.
Codecs can decode one or more server-specific data types and represent them as a specific Java type. The type parameter of Codec
indicates the interchange type that is handled by this codec.
canDecode(int dataType,
io.r2dbc.postgresql.message.Format format,
Class<?> type)
Determine whether this Codec is capable of decoding a value for the given dataType and Format and whether it can represent the decoded value as the desired
type.
booleancanDecode(int dataType,
io.r2dbc.postgresql.message.Format format,
Class<?> type)
Determine whether this Codec is capable of decoding a value for the given dataType and Format and whether it can represent the decoded value as the desired
type.
Parameters:
dataType - the Postgres OID to decode
format - the data type Format, text or binary
type - the desired value type
Returns:
true if this codec is able to decode values for tge given dataType and Format