Please leave a star to show your support for the project.
Native MongoDB driver for Swift, written in Swift. This library does not wrap around the mongoc driver. It uses:
- Our own BSON library, which is also 100% native Swift
- Our own MD5, SHA1, SCRAM and PBKDF2 libraries in 100% Swift (currently included in the package)
- Optional support for SSL/TLS using LibreSSL
- A MongoDB server (local or online) running MongoDB 2.6 or above. (MongoDB 3.2 or 3.4 is recommmended)
- Swift 3.1
Install MongoDB for Ubuntu, macOS or any other supported Linux Distro.
Alternatively; make use of a DAAS (Database-as-a-service) like MLab, Bluemix or any other of the many services.
Add this to your Package.swift file:
.Package(url: "https://github.com/OpenKitten/MongoKitten.git", majorVersion: 3, minor: 0)
And import MongoKitten
in your project.
Note: MongoKitten 4 is ready for release, but depends on features coming in the next version of Vapor. If you'd like to take a peek, use this package URL instead.
.Package(url: "https://github.com/OpenKitten/MongoKitten.git", "4.0.0-vaportls")
If you're adding MongoKitten to an existing Xcode project, make sure to rebuild your Xcode project.
- All basic operations
- Blazing fast performance
- SSL, MongoDB-CR and SASL authentication
- Sharded Clusters and Replica Sets
- Geospatial queries
- Read/Write concerns + Collations
- User management and other Administrative commands
- Indexes
- GridFS and DBRef standards support
- Expressive Aggregation pipelines
- A simple yet effective QueryBuilder
- MongoDB Document queries
- Much more
- X.509 certificate based authentication
We host all our tutorials here
And we host the MongoKitten documentation including dash docset here
We're accepting donations for our project here
The donations are used for creating and hosting tutorials, documentation and example projects.
MongoKitten is licensed under the MIT license.