Poco

namespace MongoDB

Overview

Classes: Array, BSONReader, BSONTimestamp, BSONWriter, Binary, ConcreteElement, Connection, Database, Document, Element, ElementFindByName, ElementPtrCompare, ElementTraits, JavaScriptCode, Message, MessageHeader, ObjectId, OpMsgCursor, OpMsgMessage, PooledConnection, PooledReplicaSetConnection, ReadPreference, RegularExpression, ReplicaSet, ReplicaSetConnection, ReplicaSetURI, ServerDescription, TopologyChangeNotification, TopologyDescription

Types Aliases: NullValue

Classes

class Array

This class represents a BSON Arraymore...

class BSONReader

Class for reading BSON using a Poco::BinaryReader more...

struct BSONTimestamp

 more...

class BSONWriter

Class for writing BSON using a Poco::BinaryWritermore...

class Binary

Implements BSON Binarymore...

class ConcreteElement

 more...

class Connection

Represents a connection to a MongoDB server using the MongoDB wire protocol. more...

class Database

Database is a helper class for creating requests. more...

class Document

Represents a MongoDB (BSON) document. more...

class Element

Represents an Element of a Document or an Arraymore...

class ElementFindByName

 more...

struct ElementPtrCompare

Comparison functor for Element::Ptr with transparent lookup support (C++14+). more...

struct ElementTraits

 more...

class JavaScriptCode

Represents JavaScript type in BSON. more...

class Message

Base class for all messages send or retrieved from MongoDB server. more...

class MessageHeader

Represents the message header which is always prepended to a MongoDB request or response message. more...

class ObjectId

ObjectId is a 12-byte BSON type, constructed using: - a 4-byte timestamp, - a 3-byte machine identifier, - a 2-byte process id, and - a 3-byte counter, starting with a random value. more...

class OpMsgCursor

OpMsgCursor is a helper class for querying multiple documents using OpMsgMessagemore...

class OpMsgMessage

This class represents a request/response (OP_MSG) to send requests and receive responses to/from MongoDBmore...

class PooledConnection

Helper class for borrowing and returning a connection automatically from a pool. more...

class PooledReplicaSetConnection

Helper class for borrowing and returning a ReplicaSetConnection automatically from a pool. more...

class ReadPreference

Configures read preference mode and constraints for MongoDB operations. more...

class RegularExpression

Represents a regular expression in BSON format. more...

class ReplicaSet

Class for working with a MongoDB replica set. more...

class ReplicaSetConnection

Wrapper around Connection that provides automatic retry and failover for MongoDB replica set operations. more...

class ReplicaSetURI

Class for parsing and generating MongoDB replica set URIs. more...

class ServerDescription

Represents the state of a single MongoDB server in a replica set. more...

class TopologyChangeNotification

Notification sent when MongoDB replica set topology changes. more...

class TopologyDescription

Maintains the complete MongoDB replica set topology state. more...

Types Aliases

NullValue

using NullValue = Nullable < unsigned char >;

Variables

BSON_MAX_DOCUMENT_SIZE static

static constexpr Poco::Int32 BSON_MAX_DOCUMENT_SIZE = 16 * 1024 * 1024;

Minimum BSON document size (5 bytes): 4-byte size field + 1-byte null terminator.

BSON_MIN_DOCUMENT_SIZE static

static constexpr Poco::Int32 BSON_MIN_DOCUMENT_SIZE = 5;

Minimum BSON string size (1 byte for the null terminator).

BSON_MIN_STRING_SIZE static

static constexpr Poco::Int32 BSON_MIN_STRING_SIZE = 1;

Maximum OP_MSG message size (48 MB) per MongoDB specification.

DEFAULT_LOCAL_THRESHOLD_US static

static constexpr Poco::Int64 DEFAULT_LOCAL_THRESHOLD_US = 15000;

OP_MSG_MAX_SIZE static

static constexpr Poco::Int32 OP_MSG_MAX_SIZE = 48 * 1024 * 1024;

Default local threshold for "nearest" read preference (15 ms = 15000 µs). Servers within this threshold of the minimum RTT are eligible for selection.