目录
目录README.md

vapor-fluent-mongo

Swift Build Status

Mongo driver for Fluent 5.x.

Environment Variables

Name Required Default Value (e.g.) Description
FLUENT_MONGO_CONNECTION_URL - mongodb://127.0.0.1:27017/vapor Mongo connection string.

Getting Started

Install FluentMongo

Please follow the instructions in the previous section on installing the MongoDB C Driver before proceeding.

Add FluentMongo to your dependencies in Package.swift:

// swift-tools-version:5.5
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"])
    ]
)
关于
317.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号