TransactionLabels
Mongo.TransactionLabels.swift:4@frozen enum TransactionLabels
@frozen enum TransactionLabels
import Mongo
A single-type module that declares the Mongo
namespace.
import MongoDriver
enum Mongo
case autocommitting(Int64)
case starting(Int64)
case started(Int64)
protocol ExecutionPolicy
protocol Failpoint : BSONEncodable, Sendable
protocol ImplicitSessionCommand<Response> : Mongo.Command
A 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.Command
protocol MonitorEventType : Sendable
protocol RetryableError : Error
protocol TransactableCommand<Response> : Mongo.Command
@frozen enum AbortionStatus
An outcome of aborting a Transaction
.
struct AuthenticationError
struct AuthenticationUnsupportedError
struct ClusterTime
@frozen enum CommitStatus
An outcome of committing a Transaction
.
@frozen enum ConfigureFailpoint<Options> where Options : Mongo.Failpoint
The MongoDB configureFailPoint
command.
final class Connection
A connection to a server that was created from a connection pool.
final actor ConnectionPool
A 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 ConnectionPoolSettings
struct ConnectionPoolTimeoutError
struct Cursor<BatchElement> where BatchElement : BSONDecodable, BatchElement : Sendable
@frozen struct CursorIdentifierError
struct CursorIterator
A 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 Deadlines
final actor Deployment
A type that models the state of a MongoDB deployment.
struct DeploymentStateError<Underlying> where Underlying : Error
@frozen struct DriverTimeoutError
A command was timed-out by the driver because the its deadline has already passed.
struct FailCommand
See: https://github.com/mongodb/mongo/wiki/The-%22failCommand%22-fail-point
@frozen struct GetMore<Element> where Element : BSONDecodable, Element : Sendable
@frozen struct KillCursors
struct KillCursorsResponse
@frozen struct MonitorEvent<Type> where Type : Mongo.MonitorEventType
@frozen enum MonitorService
struct Ping
The MongoDB ping
command.
enum PolicyError
@frozen enum ReadPreference
struct ReadPreferenceError
struct RefreshSessions
struct ReplicaSetConfiguration
struct ReplicaSetGetConfiguration
@frozen struct Reply
@frozen enum ReplyError
struct SASLConversationError
struct ServerError
final class Session
Tracks a session on a MongoDB server. Sessions have reference semantics.
@frozen struct SessionIdentifier
struct SessionLabels
Labels to be added to a command run as part of a logical session.
final actor SessionPool
An interface for creating driver sessions.
struct SessionsUnsupportedError
final class SnapshotSession
@frozen struct TopologyVersion
struct Transaction
struct TransactionInProgressError
@frozen enum TransactionPhase
@frozen enum TransactionResult<Success>
@frozen struct TransactionState
struct TransactionsUnsupportedError
struct VersionRequirementError
typealias SourceLocation = (file: StaticString, line: Int)
protocol Sendable
protocol BitwiseCopyable