Structure
PostgresDecodingContext
public struct PostgresDecodingContext<JSONDecoder: PostgresJSONDecoder>
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.
Initializers
init(jsonDecoder:)
public init(jsonDecoder: JSONDecoder)
Creates a PostgresDecodingContext
with the given PostgresJSONDecoder
. In case you want
to use the a PostgresDecodingContext
with an unconfigured Foundation JSONDecoder
you can use the default
context instead.
Parameters
Name | Type | Description |
---|---|---|
jsonDecoder | JSONDecoder |
A |
Properties
jsonDecoder
public var jsonDecoder: JSONDecoder
A PostgresJSONDecoder
used to decode the object from json.