MCPcopy
hub / github.com/mongodb/node-mongodb-native / getClient

Function getClient

test/tools/unified-spec-runner/entities.ts:128–130  ·  view source on GitHub ↗
(address)

Source from the content-addressed store, hash-verified

126export type LogMessage = Omit<ExpectedLogMessage, 'failureIsRedacted'>;
127
128function getClient(address) {
129 return new MongoClient(`mongodb://${address}`, getEnvironmentalOptions());
130}
131
132export class UnifiedMongoClient extends MongoClient {
133 commandEvents: CommandEvent[] = [];

Callers 2

enableFailPointMethod · 0.70
disableFailPointsMethod · 0.70

Calls 1

getEnvironmentalOptionsFunction · 0.90

Tested by

no test coverage detected