ClientSessionOptions
public struct ClientSessionOptions
Options to use when creating a ClientSession
.
-
Whether to enable causal consistency for this session. By default, causal consistency is enabled.
Declaration
Swift
public var causalConsistency: Bool?
-
The default
TransactionOptions
to use for transactions started on this session.These may be overridden by options provided directly to
ClientSession.startTransaction
.If this option is not specified, the options will be inherited from the client that started this session where applicable (e.g. write concern).
Declaration
Swift
public var defaultTransactionOptions: TransactionOptions?
-
Convenience initializer allowing any/all parameters to be omitted.
Declaration
Swift
public init(causalConsistency: Bool? = nil, defaultTransactionOptions: TransactionOptions? = nil)