nathanhjones / realm-cocoa

Realm is a mobile database: a replacement for Core Data & SQLite

Home Page:http://realm.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Realm

Realm is a mobile database that runs directly inside phones, tablets or wearables. This repository holds the source code for the iOS & OSX versions of Realm, for both Swift & Objective-C.

Features

  • Mobile-first: Realm is the first database built from the ground up to run directly inside phones, tablets and wearables.
  • Simple: Data is directly exposed as objects and queryable by code, removing the need for ORM's riddled with performance & maintenance issues. Plus, we've worked hard to keep our API down to just 4 common classes (Object, Array, Results and Realms) and 1 utility class (Migrations): most of our users pick it up intuitively, getting simple apps up & running in minutes.
  • Modern: Realm supports relationships, generics, vectorization and even Swift.
  • Fast: Realm is faster than even raw SQLite on common operations, while maintaining an extremely rich feature set.

Setting up Realm in your app

Please see the detailed instructions in our docs to install Realm in your Xcode project.

Once your app is set up with Realm, our documentation will guide you to unleash its full potential.

Documentation

Documentation for Realm can be found at realm.io/docs/cocoa. The API reference is located at realm.io/docs/cocoa/api.

Building Realm

In case you don't want to use the precompiled version, you can build Realm yourself.

Prerequisites:

  • Building Realm requires Xcode 6.
  • Building Realm documentation requires appledoc

Once you have all the necessary prerequisites, building Realm.framework just takes a single command: sh build.sh build. You'll need an internet connection the first time you build Realm to download the core binary.

Run sh build.sh help to see all the actions you can perform (build ios/osx, generate docs, test, etc.).

Executing the examples under the examples/ folder, requires that you have built the Realm.framework.

Contributing

See CONTRIBUTING.md for more details!

License

Realm Cocoa is published under the Apache 2.0 license.
The underlying core is available under the Realm Core Binary License while we work to open-source it under the Apache 2.0 license.

Feedback

If you use Realm and are happy with it, all we ask is that you please consider sending out a tweet mentioning @realm, announce your app on our mailing-list, or email help@realm.io to let us know about it!

And if you don't like it, please let us know what you would like improved, so we can fix it!

analytics

About

Realm is a mobile database: a replacement for Core Data & SQLite

http://realm.io

License:Apache License 2.0


Languages

Language:Objective-C 46.4%Language:Objective-C++ 31.7%Language:Swift 14.0%Language:Shell 2.8%Language:C++ 2.0%Language:CSS 1.2%Language:Python 1.1%Language:Ruby 0.7%Language:Emacs Lisp 0.0%