MongoSwift

public final class MongoSwift

A utility class for libmongoc initialization and cleanup.

  • The version of MongoSwift.

    Declaration

    Swift

    public static let versionString: String
  • Initializes libmongoc.

    This function should be called once at the start of the application before interacting with the driver.

    Declaration

    Swift

    public static func initialize()
  • Cleans up libmongoc.

    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 static func cleanup()