ReadConcern
public struct ReadConcern : Codable
extension ReadConcern: CustomStringConvertible
extension ReadConcern: Equatable
A struct to represent a MongoDB read concern.
-
Local ReadConcern.
Declaration
Swift
public static let local: ReadConcern -
Available ReadConcern.
Declaration
Swift
public static let available: ReadConcern -
Linearizable ReadConcern.
Declaration
Swift
public static let linearizable: ReadConcern -
Majority ReadConcern.
Declaration
Swift
public static let majority: ReadConcern -
Snapshot ReadConcern.
Declaration
Swift
public static let snapshot: ReadConcern -
Server default ReadConcern.
Declaration
Swift
public static let serverDefault: ReadConcern -
For an unknown ReadConcern. For forwards compatibility, no error will be thrown when an unknown value is provided.
Declaration
Swift
public static func other(_ level: String) -> ReadConcern -
Indicates whether this
ReadConcernis the server default.Declaration
Swift
public var isDefault: Bool { get } -
Returns the relaxed extended JSON representation of this
ReadConcern. On error, an empty string will be returned.Declaration
Swift
public var description: String { get } -
Declaration
Swift
public static func == (lhs: ReadConcern, rhs: ReadConcern) -> Bool
View on GitHub
Install in Dash
ReadConcern Structure Reference