shndrs / Realmbustion

In this project i wanna build an useful DataBase with realm, nevertheless i'm a GRDB fan πŸ˜„, but whatever let's give it a shot πŸ˜‰

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HaveFunWithRealm

In this project i wanna build an useful DataBase with realm, nevertheless i'm a GRDB fan πŸ˜„, but whatever let's give it a shot πŸ˜‰

Usage

It's pretty simple, just follow these instructions and you have it πŸ™‚

Create

let object = RealmObject()
Cruder<RealmObject>().connect(actionType: .create, item: object)

Get items

let items = Cruder<RealmObject>().getItems()

Get item with id

let item = Cruder<RealmObject>().getItem(with: "your object id")

Update Item

Cruder<RealmObject>().connect(actionType: .update, item: RealmObject(), newItem: AnotherRealmObject()) { (success, error) in }

Delete Item

Cruder<RealmObject>().connect(actionType: .delete, item: RealmObject()) { (success, error) in }

Author

sahandraeisi1994@gmail.com, sahandraeisi@yahoo.com, shndrs

License

HaveFunWithRealm is available under the MIBSL-1.0 license. See the LICENSE file for more info.

About

In this project i wanna build an useful DataBase with realm, nevertheless i'm a GRDB fan πŸ˜„, but whatever let's give it a shot πŸ˜‰

License:Boost Software License 1.0


Languages

Language:Swift 97.0%Language:Ruby 3.0%