TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Apr 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Matteo Crippa.
Depends on: | |
SwiftyJSON | ~> 3 |
RealmSwift | ~> 2 |
SwiftyJSONRealmObject | ~> 1 |
It is a protocol to easily handle database read/write on top of Realm as singleton.
To run the example project, clone the repo, and run pod install
from the Example directory first.
Database is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "Database"
DatabaseConfiguration
handles the database configuration, the database implementation has been made on top of Databaseable
protocol.
In configuration you can set:
disk
or memory
databaseDatabaseDebugVerbosity
supports:
Databaseable
protocol allows you to:
get
to get items of Realm
type or an item using keysave
to save from JSON
, Realm
object or sequencedelete
to remove an object of Realm
typematteocrippa, @ghego20
Database is available under the MIT license. See the LICENSE file for more info.