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: JSONDecoder)Creates aPostgresDecodingContextwith the givenPostgresJSONDecoder. In case you want to use aPostgresDecodingContextwith an unconfigured FoundationJSONDecoderyou can use thedefaultcontext instead.
Instance Properties
var jsonDecoder: JSONDecoderAPostgresJSONDecoderused to decode the object from JSON.
Type Properties
static let `default`: PostgresDecodingContext<JSONDecoder>A defaultPostgresDecodingContextthat uses a FoundationJSONDecoder.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype
See Also
Decoding
protocol PostgresDecodableA type that can decode itself from a Postgres wire binary representation.protocol PostgresArrayDecodableA type that can be decoded into a Swift Array of its own type from a Postgres array.protocol PostgresRangeDecodableA type that can be decoded into a Swift RangeExpression type from a Postgres range where it is the bound type.protocol PostgresRangeArrayDecodableA type that can be decoded into a Swift RangeExpression array type from a Postgres range array where it is the bound type.