DavidSights / MongoKitten

Native MongoDB driver for Swift, written in Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please leave a star to show your support for the project.

MongoKitten

Swift 3.0.1 License Build Status

Native MongoDB driver for Swift, written in Swift. This library does not wrap around the mongoc driver. It uses:

Requirements

  • A MongoDB server (local or online) running MongoDB 2.6 or above. (MongoDB 3.2 or 3.4 is recommmended)
  • Swift 3.1

Setting up MongoDB

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.

Importing

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.

Supported Features

  • 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

TODO

  • X.509 certificate based authentication

Learn

We host all our tutorials here

And we host the MongoKitten documentation including dash docset here

Support

We're accepting donations for our project here

The donations are used for creating and hosting tutorials, documentation and example projects.

License

MongoKitten is licensed under the MIT license.

About

Native MongoDB driver for Swift, written in Swift

License:MIT License


Languages

Language:Swift 100.0%