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
init(json: JSONEncoder)Initialize aMySQLDataEncoderwith a JSON encoder.
Instance Methods
func encode(any Encodable) throws -> MySQLDataConvert the givenEncodablevalue to aMySQLDatavalue, if possible.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype