Giter Club home page Giter Club logo

realm-cocoa's Introduction

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 3 common classes (Object, Arrays 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 (experimental).
  • Fast: Realm is faster than even raw SQLite on common operations, while maintaining an extremely rich feature set.

Setting up Realm in your app

Swift

Please see the detailed instructions in our docs. CocoaPods does not support Swift yet.

Objective-C

There are two ways to set up Realm in your app: manually or with CocoaPods.

Manually:

  1. Download the latest release of Realm and extract the zip (or build it from source).
  2. Drag Realm.framework from our release and into the Frameworks folder in your project in Xcode. Make sure Copy items into destination group’s folder is selected and press Finish.
  3. Click on the project in the Xcode file explorer. Select your target and go to the Build Phases tab. Under Link Binary with Libraries press + and add libc++.dylib.

CocoaPods:

  1. Add the following to your Podfile: pod "Realm".
  2. From the command line, run pod install.
  3. Use the .xcworkspace file generated by CocoaPods to work on your 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 5 or above
  • Building Realm with Swift support for iOS requires Xcode 6 Beta 6, Beta 7, or GM. 6.1 is not supported.
  • Building the Swift examples requires Xcode6-Beta7 or GM.
  • Building Realm documentation requires appledoc

Once you have all the necessary prerequisites, building Realm.framework just takes a single command: sh build.sh ios. 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 [email protected] 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

realm-cocoa's People

Contributors

alazier avatar astigsen avatar bagvendt avatar bjchrist avatar bmunkholm avatar cbess avatar darkares2 avatar dismory avatar emanuelez avatar fyell avatar greatape avatar hovoere avatar jjepsen avatar jpsim avatar kspangsege avatar marcboquet avatar mekjaer avatar moored avatar oleks avatar paulyhedral avatar reflejo avatar rogernolan avatar tgoyne avatar timanglade avatar zuschlag avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.