AssociationToOne
An association that defines a to-one connection.
protocol AssociationToOne : Association
Browse conforming typesAn association that defines a to-one connection.
protocol AssociationToOne : Association
import GRDB
A toolkit for SQLite databases, with a focus on application development
protocol Association : DerivableRequest, Sendable
A type that defines a connection between two tables.
protocol AggregatingRequest
A request that can aggregate database rows.
protocol DerivableRequest<RowDecoder> : AggregatingRequest, FilteredRequest, JoinableRequest, OrderedRequest, SelectionRequest, TableRequest
DerivableRequest
is the base protocol for QueryInterfaceRequest
and Association
.
protocol FilteredRequest
A request that can filter database rows.
protocol JoinableRequest<RowDecoder> : TypedRequest
A request that can join and prefetch associations.
protocol OrderedRequest
A request that can sort database rows.
protocol SelectionRequest
A request that can define the selected columns.
protocol Sendable
protocol TableRequest
A request that feeds from a database table
protocol TypedRequest<RowDecoder>
A request that knows how to decode database rows.
struct BelongsToAssociation<Origin, Destination>
Thes BelongsToAssociation
sets up a one-to-one connection from a record type to another record type, such as each instance of the declaring record “belongs to” an instance of the other record.
struct HasOneAssociation<Origin, Destination>
The HasOneAssociation
indicates a one-to-one connection between two record types, such as each instance of the declaring record “has one” instances of the other record.
struct HasOneThroughAssociation<Origin, Destination>
The HasOneThroughAssociation
sets up a one-to-one connection with another record. This association indicates that the declaring record can be matched with one instance of another record by proceeding through a third record.
func forKey(_ key: String) -> Self