PHP 8.4.6 Released!

La classe MongoDB\Driver\TopologyDescription

(mongodb >=1.13.0)

Introduction

La classe MongoDB\Driver\TopologyDescription est un objet de valeur qui représente une topologie à laquelle le pilote est connecté. Les instances de cette classe sont retournées par les méthodes de MongoDB\Driver\Monitoring\TopologyChangedEvent.

Synopsis de la classe

final class MongoDB\Driver\TopologyDescription {
/* Constantes */
const string TYPE_UNKNOWN = "Unknown";
const string TYPE_SINGLE = "Single";
const string TYPE_SHARDED = "Sharded";
const string TYPE_REPLICA_SET_NO_PRIMARY = "ReplicaSetNoPrimary";
const string TYPE_REPLICA_SET_WITH_PRIMARY = "ReplicaSetWithPrimary";
const string TYPE_LOAD_BALANCED = "LoadBalanced";
/* Méthodes */
final public getServers(): array
final public getType(): string
final public hasWritableServer(): bool
}

Sommaire

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant