DatabaseValueConvertible
public protocol DatabaseValueConvertible
This protocol allows a type to provide a custom scheme for encoding it in the database.
-
This initializer decodes a value based on the data from the database.
Declaration
Swift
init(databaseValue: DatabaseValue) throws
-
This method encodes a value into the data for the database.
Declaration
Swift
var databaseValue: DatabaseValue { get }