EncodableRecord

A type that can encode itself in a database row.

EncodableRecord.swift:42
protocol EncodableRecord
Browse conforming types

To conform to EncodableRecord, provide an implementation for the encode(to:) method. This implementation is ready-made for Encodable types.

Most of the time, your record types will get EncodableRecord conformance through the MutablePersistableRecord or PersistableRecord protocols, which provide persistence methods.

Encoding a Database Row

Configuring Persistence for the Standard Encodable Protocol

Converting a Record to a Dictionary

Comparing Records