Other Functions
The following functions are available globally.
-
Adds metadata to include the in the handshake performed with the MongoDB server. This is intended for use by libraries wrapping the driver e.g. MongoDBVapor or an ODM. If used, this method should be called exactly once. This method will only have an effect if called before any
MongoClient
s are initialized.Declaration
Swift
public func addWrappingLibraryMetadata(name: String, version: String)
-
Release all internal memory and other resources allocated by MongoSwift.
This function should be called once at the end of the application. Users should not interact with the driver after calling this function.
Declaration
Swift
public func cleanupMongoSwift()