ReplicatorConfiguration

public struct ReplicatorConfiguration

Replicator configuration.

  • The local database to replicate with the target database. The database property is required.

    Declaration

    Swift

    public var database: Database?
  • The replication target to replicate with. The replication target can be either a URL to the remote database or a local databaes. The target property is required.

    Declaration

    Swift

    public var target: ReplicatorTarget?
  • Replication type indicating the direction of the replication. The default value is .pushAndPull which is bidrectional.

    Declaration

    Swift

    public var replicatorType: ReplicatorType
  • Should the replicator stay active indefinitely, and push/pull changed documents?. The default value is false.

    Declaration

    Swift

    public var continuous: Bool
  • The conflict resolver for this replicator. The default value is nil, which means the default algorithm will be used, where the revision with more history wins.

    Declaration

    Swift

    public var conflictResolver: ConflictResolver?
  • Extra options that can affect replication.

    Declaration

    Swift

    public var options: Dictionary<String, Any>?
  • Initialize a ReplicatorConfiguration with the default values.

    Declaration

    Swift

    public init()