Latest 0.1.8
Homepage https://github.com/matteocrippa/Database
License MIT
Platforms ios 9.0, tvos 9.0
Dependencies SwiftyJSON, RealmSwift, SwiftyJSONRealmObject
Authors

It is a protocol to easily handle database read/write on top of Realm as singleton.

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

Database is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "Database"

Usage

Configuration

DatabaseConfiguration handles the database configuration, the database implementation has been made on top of Databaseable protocol.

In configuration you can set:

  • name, it is not linked yet
  • type, it supports disk or memory database
  • debug, it supports different logging types

DatabaseDebugVerbosity supports:

  • none, no message will be shown (Default)
  • all, all messages will be shown
  • error, only setting and error will be shown
  • message, all messages will be shown

Database

Databaseable protocol allows you to:

  • get to get items of Realm type or an item using key
  • save to save from JSON, Realm object or sequence
  • delete to remove an object of Realm type

Author

matteocrippa, @ghego20

License

Database is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "Database",
    "version": "0.1.8",
    "summary": "A database wrapper for realm.",
    "description": "Database singleton wrapper for Realm",
    "homepage": "https://github.com/matteocrippa/Database",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "matteocrippa": "@ghego20"
    },
    "source": {
        "git": "https://github.com/matteocrippa/Database.git",
        "tag": "0.1.8"
    },
    "social_media_url": "https://twitter.com/ghego20",
    "platforms": {
        "ios": "9.0",
        "tvos": "9.0"
    },
    "source_files": "Database/Classes/**/*",
    "dependencies": {
        "SwiftyJSON": [
            "~> 3"
        ],
        "RealmSwift": [
            "~> 2"
        ],
        "SwiftyJSONRealmObject": [
            "~> 1"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This