An Swift database library built over Google's LevelDB, a fast embedded key-value store written by Google.
By far, the easiest way to integrate this library in your project is by using CocoaPods.
-
Have Cocoapods installed, if you don't already
-
In your Podfile, add the line
pod 'SwiftLevelDB'
-
Run
pod install
-
Make something awesome.
let db = LevelDB.open(db: "test.db")
db.putCodable(true, forKey: "bool")
let getData = db.getCodable(forKey: "bool", type: Bool.self) ?? false
db.delete("bool")
let keys: [Slice] = db.keys()
db.close()
Distributed under the MIT license