Structure
PostgresDecodingContext
A context that is passed to Swift objects that are decoded from the Postgres wire format. Used to pass further information to the decoding method.
struct PostgresDecodingContext<JSONDecoder> where JSONDecoder : PostgresJSONDecoder
Topics
Initializers
init(jsonDecoder:)Creates aPostgresDecodingContextwith the givenPostgresJSONDecoder. In case you want to use aPostgresDecodingContextwith an unconfigured FoundationJSONDecoderyou can use thedefaultcontext instead.
Instance Properties
jsonDecoderAPostgresJSONDecoderused to decode the object from JSON.
Type Properties
defaultA defaultPostgresDecodingContextthat uses a FoundationJSONDecoder.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype
See Also
Decoding
PostgresDecodableA type that can decode itself from a Postgres wire binary representation.PostgresArrayDecodableA type that can be decoded into a Swift Array of its own type from a Postgres array.PostgresRangeDecodableA type that can be decoded into a Swift RangeExpression type from a Postgres range where it is the bound type.PostgresRangeArrayDecodableA type that can be decoded into a Swift RangeExpression array type from a Postgres range array where it is the bound type.