Functions
The following functions are available globally.
-
A helper function to test equality between two
BSONValue
s. 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
false
if it is used with two arrays that are not of the type[BSONValue]
, because only arrays composed of solelyBSONValue
s are valid BSON arrays.Declaration
Return Value
true
iflhs
is equal torhs
,false
otherwise. -
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.
Declaration
Return Value
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.
Declaration
Swift
public func cleanupMongoSwift()