All Projects → vapor-community → mongo-driver

vapor-community / mongo-driver

Licence: other
MongoDB driver for Fluent

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to mongo-driver

fluent-mysql-driver
🖋🐬 Swift ORM (queries, models, relations, etc) built on MySQL.
Stars: ✭ 69 (+155.56%)
Mutual labels:  vapor, fluent, fluent-driver
fluent-postgres-driver
🐘 PostgreSQL driver for Fluent.
Stars: ✭ 120 (+344.44%)
Mutual labels:  vapor, fluent, fluent-driver
Fluent Sqlite Driver
Fluent driver for SQLite
Stars: ✭ 51 (+88.89%)
Mutual labels:  vapor, fluent
auth
👤 Authentication and Authorization framework for Fluent.
Stars: ✭ 51 (+88.89%)
Mutual labels:  vapor, fluent
pagination
Simple Vapor 3 Pagination
Stars: ✭ 64 (+137.04%)
Mutual labels:  vapor, fluent
Fluent Kit
Swift ORM (queries, models, and relations) for NoSQL and SQL databases
Stars: ✭ 82 (+203.7%)
Mutual labels:  vapor, fluent
paginator
Offset pagination for Vapor 🗂
Stars: ✭ 67 (+148.15%)
Mutual labels:  vapor, fluent
apns
Helpful extensions and abstractions for using APNSwift
Stars: ✭ 75 (+177.78%)
Mutual labels:  vapor
submissions
Provides a common structure to deal with data based API requests
Stars: ✭ 15 (-44.44%)
Mutual labels:  vapor
Fluent-Random-Picker
Fluent Random Picker is a nice, performant, fluent way to pick random values. Probabilities can be specified, values can be weighted.
Stars: ✭ 26 (-3.7%)
Mutual labels:  fluent
async
⏱ Promises and reactive-streams in Swift built for high-performance and scalability.
Stars: ✭ 35 (+29.63%)
Mutual labels:  vapor
Rise-Media-Player
One media player for everything you own or stream; whether it's music or videos, online or offline Rise Media Player does it all. And it's beautiful and native with the latest version of WinUI.
Stars: ✭ 600 (+2122.22%)
Mutual labels:  fluent
sanitize
Powerful model extraction from Vapor JSON requests
Stars: ✭ 17 (-37.04%)
Mutual labels:  vapor
cargo-i18n
A Rust Cargo sub-command and libraries to extract and build localization resources to embed in your application/library
Stars: ✭ 88 (+225.93%)
Mutual labels:  fluent
fluentcheck
Fluent assertions for Python
Stars: ✭ 79 (+192.59%)
Mutual labels:  fluent
Microsoft.Maui.Graphics.Controls
Experimental Microsoft.Maui.Graphics.Controls - Build drawn controls (Cupertino, Fluent and Material)
Stars: ✭ 549 (+1933.33%)
Mutual labels:  fluent
Lingo-Vapor
Vapor provider for Lingo - the Swift localization library
Stars: ✭ 45 (+66.67%)
Mutual labels:  vapor
HomeKitty
A Vapor 3 website to easily browse HomeKit accessories.
Stars: ✭ 75 (+177.78%)
Mutual labels:  vapor
readme
Welcome to Vapor development at Nodes 📖
Stars: ✭ 47 (+74.07%)
Mutual labels:  vapor
molten-json
A fluent Java 8 DSL for building JSON documents.
Stars: ✭ 19 (-29.63%)
Mutual labels:  fluent

Mongo Driver for Fluent

Swift Slack Status

Install the MongoDB server

For more instructions, check out https://docs.mongodb.com/master/administration/install-community/.

OS X

brew install mongodb

Ubuntu

sudo apt-get update
sudo apt-get install mongodb

Run the MongoDB server

mongod

Connecting to MongoDB with Fluent

You need to edit Config/fluent.json to define mongo as the underlying database technology to use as driver for Fluent:

{ 
    "driver": "mongo" 
}

Creating a driver is done using the MongoDB Connection String URI Format. Initializing a MongoDriver such a URI will attempt a connection to MongoDB.

import MongoDriver
import Fluent

let driver = try MongoDriver("mongodb://localhost")
let db = Fluent.Database(driver)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].