I have verified that all products depended-upon by this package are Foundation-free when compiled for a linux target. Note that some package dependencies do vend products that import Foundation, but swift links binaries at the product level, and this library does not depend on any such products.
Rationale: this package provides the TraceableErrors module which the driver uses to provide rich diagnostics. The driver does not depend on any parser targets.
Rationale: this package provides data structures that improve the runtime complexity of several algorithms the driver uses internally. Moreover, the driver’s swift-nio dependency already depends on one of this package’s modules (DequeModule) anyway.
Note: This library depends on the NIOSSL product from swift-nio-ssl, which imports Foundation on Apple platforms only. NIOSSL is Foundation-free on all other platforms.
toolchain requirement
This package requires swift 5.8 or greater.
acknowledgements
This library originally started out as a re-write of Orlandos’s MongoKitten; accordingly the MongoDriver module retains MongoKitten’s original MIT-license.
The other modules are available under the MPL 2.0 license. This license was chosen as an organizational default, and is not ideological. Please reach out if you have a use-case that requires a more-permissive license!
mongodb0.2.3swift-mongodbis a pure-Swift BSON library and MongoDB driver. All of the constituent products in this package are Foundation-free.getting started
TODO: add more snippets
external dependencies
I have verified that all products depended-upon by this package are Foundation-free when compiled for a linux target. Note that some package dependencies do vend products that import Foundation, but swift links binaries at the product level, and this library does not depend on any such products.
My packages:
swift-grammarRationale: this package provides the
TraceableErrorsmodule which the driver uses to provide rich diagnostics. The driver does not depend on any parser targets.swift-hashRationale: this package implements cryptographic algorithms the driver uses to complete authentication with
mongod/mongosservers.Other packages:
apple/swift-atomicsRationale: this package provides atomic types that improve the performance of the driver’s various concurrent data structures.
apple/swift-collectionsRationale: this package provides data structures that improve the runtime complexity of several algorithms the driver uses internally. Moreover, the driver’s
swift-niodependency already depends on one of this package’s modules (DequeModule) anyway.apple/swift-nioRationale: networking.
apple/swift-nio-sslRationale: networking.
toolchain requirement
This package requires swift 5.8 or greater.
acknowledgements
This library originally started out as a re-write of Orlandos’s MongoKitten; accordingly the
MongoDrivermodule retains MongoKitten’s original MIT-license.The official MongoDB C driver also served as prior art for this module.
license
The
MongoDrivermodule is MIT-licensed.The other modules are available under the MPL 2.0 license. This license was chosen as an organizational default, and is not ideological. Please reach out if you have a use-case that requires a more-permissive license!