ConnectionPoolDrainedError
Mongo.ConnectionPoolDrainedError.swift:7struct ConnectionPoolDrainedError
struct ConnectionPoolDrainedError
import Mongo
A single-type module that declares the Mongo
namespace.
import MongoDriver
enum Mongo
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.
@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 TransactionLabels
@frozen enum TransactionPhase
@frozen enum TransactionResult<Success>
@frozen struct TransactionState
struct TransactionsUnsupportedError
struct VersionRequirementError
typealias SourceLocation = (file: StaticString, line: Int)
protocol Sendable
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Error : Sendable
A type representing an error value that can be thrown.
protocol Escapable
protocol TraceableError : CustomStringConvertible, Error
A link in a propogated error.
init(because error: any Error, host: Host)
let host: Host
var isRetryable: Bool { get }
var notes: [String] { get }
let underlying: any Error
static func == (lhs: Self, rhs: Self) -> Bool
var description: String { get }
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
static func == (lhs: Self, rhs: any Error) -> Bool
func headline(plaintext: Bool = true) -> String