Skip to content

Instance Method

encode(_:)

Convert the given Encodable value to a MySQLData value, if possible.
func encode(_ value: any Encodable) throws -> MySQLData

Parameters

value

The value to convert.

Return Value

A converted MySQLData value, if successful.