This library provides Swift bindings for rocksdb as well as Swifty bindings.
You can use this library with Swift Package Manager and Cocoapods on iOS, macOS, tvOS, watchOS and Linux.
RocksDB is available through CocoaPods. To install it, simply add the following line to your Podfile:
Swift Package Manager
RocksDB is compatible with Swift Package Manager (Swift 5 and above). Simply add it to the dependencies in your Package.swift.
dependencies: [ .package(url: "https://github.com/Ybrin/rocksdb.swift.git", from: "6.4.15") ]
And then add it to your target dependencies:
targets: [ .target( name: "MyProject", dependencies: ["RocksDB"]), .testTarget( name: "MyProjectTests", dependencies: ["MyProject"]) ]
After the installation you can import RocksDB in your .swift files.
For now, check out the tests for examples on how to use this wrapper. Contributions to add more examples are happily welcome.
Major and Minor Version numbers are kept in sync with the upstream rocksdb library. Patch version varies.
rocksdb.swift is available under the MIT license. Copyright for rocksdb belongs to facebook.
You may find interesting
v6.4.7 - 2019-11-17 23:37:21
This release includes the librocksdb podspec. rocksdb.swift podspec as wenn as the SPM package will be released in a separate tag.