DatabasePublishers
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public enum DatabasePublishers
A namespace for database Combine publishers.
-
A publisher that reads a value from the database. It publishes exactly one element, or an error.
See:
See moreDeclaration
Swift
public struct Read<Output> : Publisher
-
A publisher that tracks changes in a database region.
See
See moreDatabaseRegionObservation.publisher(in:)
.Declaration
Swift
public struct DatabaseRegion : Publisher
-
A publisher that writes into the database. It publishes exactly one element, or an error.
See:
DatabaseWriter.writePublisher(updates:)
.DatabaseWriter.writePublisher(updates:thenRead:)
.DatabaseWriter.writePublisher(receiveOn:updates:)
.DatabaseWriter.writePublisher(receiveOn:updates:thenRead:)
.
Declaration
Swift
public struct Write<Output> : Publisher
-
A publisher that migrates a database. It publishes exactly one element, or an error.
See
See moreDatabaseMigrator.migratePublisher(_:receiveOn:)
.Declaration
Swift
public struct Migrate : Publisher
-
A publisher that tracks changes in the database.
See
See moreValueObservation.publisher(in:scheduling:)
.Declaration
Swift
public struct Value<Output> : Publisher