mongodb-memory-server-core
    Preparing search index...

    Download and extract the "mongod" binary

    Index

    Constructors

    Properties

    _downloadingUrl?: string
    binaryOpts: Required<MongoBinaryOpts>

    These options are kind of raw, they are not run through DryMongoBinary.generateOptions

    isTTY: boolean = false

    Determines if direct stdio should be done, or repeated console.logs

    Methods

    • Extract a .tar.gz archive

      Parameters

      • mongoDBArchive: string

        Archive location

      • extractPath: string

        Directory to extract to

      • filter: (file: string) => boolean

        Method to determine which files to extract

      Returns Promise<void>

    • Extract a .zip archive

      Parameters

      • mongoDBArchive: string

        Archive location

      • extractPath: string

        Directory to extract to

      • filter: (file: string) => boolean

        Method to determine which files to extract

      Returns Promise<void>

    • Download given httpOptions to tempDownloadLocation, then move it to downloadLocation

      Parameters

      • url: URL

        The URL to download the file from

      • httpOptions: RequestOptions

        The httpOptions directly passed to https.get

      • downloadLocation: string

        The location the File should be after the download

      • tempDownloadLocation: string

        The location the File should be while downloading

      • OptionalmaxRetries: number

        Maximum number of retries on download failure

      • baseDelay: number = 1000

        Base delay in milliseconds for retrying the download

      • timeout: number = 60000

        The time of inactivity(0bytes/second) after which the request is canceled

      Returns Promise<string>

    • Download MD5 file and check it against the MongoDB Archive

      Parameters

      • urlForReferenceMD5: string

        URL to download the MD5

      • mongoDBArchive: string

        The MongoDB Archive file location

      Returns Promise<boolean | undefined>

      if "checkMD5" is falsey

      if the md5 check failed