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

Method checkForMongoCrypt

src/encrypter.ts:114–126  ·  src/encrypter.ts::Encrypter.checkForMongoCrypt
()

Source from the content-addressed store, hash-verified

112 }
113
114 static checkForMongoCrypt(): void {
115 const mongodbClientEncryption = getMongoDBClientEncryption();
116 if (class="st">'kModuleError' in mongodbClientEncryption) {
117 throw new MongoMissingDependencyError(
118 class="st">'Auto-encryption requested, but the module is not installed. ' +
119 class="st">'Please add `mongodb-client-encryption` as a dependency of your project',
120 {
121 cause: mongodbClientEncryption[class="st">'kModuleError'],
122 dependencyName: class="st">'mongodb-client-encryption'
123 }
124 );
125 }
126 }
127}

Callers 1

parseOptionsFunction · 0.80

Calls 1

Tested by

no test coverage detected