Skip to content

Protocol

AnyDatabaseProperty

Marks a property as having “database” capability - in other words, the property receives output from the results of read queries, provides input to write queries, and/or represents one or more model fields.
protocol AnyDatabaseProperty : AnyProperty

Overview

Note

Most “database” properties participate in all three aspects (is/has fields, provides input, receives output), but certain properties only participate in receiving output (most notably the non-parent relation property types). Those properties only behave in this manner because the ability to look up the needed information on demand was not available in Swift until after the implementation was effectively complete. They should not be considered actual “database” properties.

Topics

Instance Properties

Instance Methods

Relationships

Inherits From

Conforming Types