The following functions are available globally.
A helper function to test equality between two
BSONValues. This function tests for exact BSON equality. This means that differing types with equivalent value are not equivalent.
e.g. 4.0 (Double) != 4 (Int)
NOTE: This function will always return
falseif it is used with two arrays that are not of the type
[BSONValue], because only arrays composed of solely
BSONValues are valid BSON arrays.
lhsis equal to
A helper function to test equality between two BSONValue?s. See bsonEquals for BSONValues (non-optional) for more information.
- lhs: The left-hand-side BSONValue? to compare.
- rhs: The right-hand-side BSONValue? to compare.
True if lhs is equal to rhs, false otherwise.
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.
public func cleanupMongoSwift()