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.
- A MongoDB server (local or online) running MongoDB 2.6 or above. (MongoDB 3.2 or 3.4 is recommmended)
- Swift 3.1 or greater
Linux requries the
libssl-dev library to be installed.
For Swift 4.0 you’ll need to put the package
CryptoSwift in editable mode using:
swift package edit CryptoSwift --revision develop
Setting up MongoDB
Add this to your dependencies:
.Package(url: "https://github.com/OpenKitten/MongoKitten.git", majorVersion: 4)
import MongoKitten in your project.
Always compile MongoKitten in release mode for production and benchmarks. MongoKitten has proven to be 100-200x faster on release mode compared to debug compilation. And debug compilation is what Xcode and SPM use by default.
swift build -c release
Join our slack here and become a part of the welcoming community.
Contributors are always welcome. Questions can be discussed on slack or in github issues. We also take part in the Contributor Covenant Code of Conduct.
We’re accepting donations for our project here. We hope to set up a good test environment as well ad many docs, tutorials and examples.
MongoKitten’s is faster than other drivers. It is, however, not fully tested to MongoDB spec yet.
|Java (post JIT optimizations)||585ms|
|Java (pre JIT optimizations)||1205ms|
MongoKitten is licensed under the MIT license.