Skip to content

Structure

MySQLDataDecoder

Translates MySQLData values received from the database into Decodable values.
struct MySQLDataDecoder

Overview

Types which conform to MySQLDataConvertible are converted directly to the requested type. For other types, an attempt is made to interpret the database value as JSON and decode the type from it.

Topics

Initializers

Instance Methods

  • decode(_:from:)
    Convert the given MySQLData into a value of type T, if possible.

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype