PersistableRecord

A type that can be persisted in the database.

PersistableRecord.swift:42
protocol PersistableRecord : MutablePersistableRecord
Browse conforming types

PersistableRecord has non-mutating variants of MutablePersistableRecord methods.

Conforming to the PersistableRecord Protocol

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

You configure the database table where records are persisted with the TableRecord inherited protocol.

Inserting a Record

Inserting a Record and Fetching the Inserted Row

Saving a Record

Saving a Record and Fetching the Saved Row

Persistence Callbacks