Mongo driver for Fluent
||Mongo connection string.|
Install the MongoDB C Driver
The driver wraps the MongoDB C driver, and using it requires having the C driver's two components,
libmongoc, installed on your system. The minimum required version of the C Driver is 1.16.2.
On a Mac, you can install both components at once using Homebrew:
brew install mongo-c-driver.
On Linux: please follow the instructions from
libmongoc's documentation. Note that the versions provided by your package manager may be too old, in which case you can follow the instructions for building and installing from source.
Please follow the instructions in the previous section on installing the MongoDB C Driver before proceeding.
Add FluentMongo to your dependencies in
// swift-tools-version:5.1 import PackageDescription let package = Package( name: "MyPackage", dependencies: [ .package(url: "https://github.com/asensei/fluent-mongo.git", from: "VERSION.STRING.HERE"), ], targets: [ .target(name: "MyPackage", dependencies: ["FluentMongo"]) ] )