Skip to content

Structure

MySQLDataEncoder

Translates Encodable values into MySQLData values suitable for use with a MySQLDatabase.
struct MySQLDataEncoder

Overview

Types which conform to MySQLDataConvertible are converted directly to MySQLData. Other types are encoded as JSON and sent to the database as text.

Topics

Initializers

Instance Methods

  • encode(_:)
    Convert the given Encodable value to a MySQLData value, if possible.

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype