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:
pod 'rocksdb.swift'
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.
import Web3
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.