AbortionStatus
An outcome of aborting a Transaction.
@frozen enum AbortionStatusAn outcome of aborting a Transaction.
@frozen enum AbortionStatusimport MongoA single-type module that declares the Mongo namespace.
import MongoDriverenum Mongostruct Transactioncase cancelledThe transaction was not aborted, because there was nothing to abort. (No user commands were run with the transaction.)
case abortedThe transaction abortion succeeded.
case failed(any Error)The transaction abortion failed.
protocol ExecutionPolicyprotocol Failpoint : BSONEncodable, Sendableprotocol ImplicitSessionCommand<Response> : Mongo.CommandA type that can encode a MongoDB command that can be run as part of a session, which can be implicitly generated if the command is sent to a deployment at large.
protocol IterableCommand<Element> : Mongo.Commandprotocol MonitorEventType : Sendableprotocol RetryableError : Errorprotocol TransactableCommand<Response> : Mongo.Commandstruct AuthenticationErrorstruct AuthenticationUnsupportedErrorstruct ClusterTime@frozen enum CommitStatusAn outcome of committing a Transaction.
@frozen enum ConfigureFailpoint<Options> where Options : Mongo.FailpointThe MongoDB configureFailPoint command.
final class ConnectionA connection to a server that was created from a connection pool.
final actor ConnectionPoolA thread-safe reference type that maintains connections to a particular mongod or mongos host, services connection requests, and serves as a delegate for a server monitoring task.
struct ConnectionPoolDrainedError@frozen struct ConnectionPoolSettingsstruct ConnectionPoolTimeoutErrorstruct Cursor<BatchElement> where BatchElement : BSONDecodable, BatchElement : Sendable@frozen struct CursorIdentifierErrorstruct CursorIteratorA cursor iterable is an immutable (but non-Sendable) structure containing all of the information needed to get(more:) data from a server.
enum CursorLifecycle@frozen struct Deadlinesfinal actor DeploymentA type that models the state of a MongoDB deployment.
struct DeploymentStateError<Underlying> where Underlying : Error@frozen struct DriverTimeoutErrorA command was timed-out by the driver because the its deadline has already passed.
struct FailCommandSee: https://github.com/mongodb/mongo/wiki/The-%22failCommand%22-fail-point
@frozen struct GetMore<Element> where Element : BSONDecodable, Element : Sendable@frozen struct KillCursorsstruct KillCursorsResponse@frozen struct MonitorEvent<Type> where Type : Mongo.MonitorEventType@frozen enum MonitorServicestruct PingThe MongoDB ping command.
enum PolicyError@frozen enum ReadPreferencestruct ReadPreferenceErrorstruct RefreshSessionsstruct ReplicaSetConfigurationstruct ReplicaSetGetConfiguration@frozen struct Reply@frozen enum ReplyErrorstruct SASLConversationErrorstruct ServerErrorfinal class SessionTracks a session on a MongoDB server. Sessions have reference semantics.
@frozen struct SessionIdentifierstruct SessionLabelsLabels to be added to a command run as part of a logical session.
final actor SessionPoolAn interface for creating driver sessions.
struct SessionsUnsupportedErrorfinal class SnapshotSession@frozen struct TopologyVersionstruct TransactionInProgressError@frozen enum TransactionLabels@frozen enum TransactionPhase@frozen enum TransactionResult<Success>@frozen struct TransactionStatestruct TransactionsUnsupportedErrorstruct VersionRequirementErrortypealias SourceLocation = (file: StaticString, line: Int)protocol Sendable