realm-js/README.md

44 lines
1.5 KiB
Markdown
Raw Normal View History

2016-01-12 19:02:30 +00:00
# Realm Object Store
Cross-platform code used accross bindings. Binding developers can choose to use some or all the included functionality:
2016-01-12 19:02:30 +00:00
- `object_store`/`schema`/`object_schema`/`property` - contains the structures and logic used to setup and modify realm files and their schema.
- `shared_realm` - wraps the object_store apis to provide transactions, notifications, realm caching, migrations, and other higher level functionality.
- `object_accessor`/`results`/`list` - accessor classes, object creation/update pipeline, and helpers for creating platform specific property getters and setters.
- `parser`/`query_builder` - cross platform query parser and query builder - requires and object_accessor specialization for argument support. Depends on https://github.com/ColinH/PEGTL
## Building
The object store's build system currently only suports building for OS X. The object store itself can build for all Apple
platforms when integrated into a binding.
2016-03-08 17:40:05 +00:00
1. Install CMake. You can download an installer for OS X from the [CMake download page](https://cmake.org/download/), or install via [Homebrew](http://brew.sh):
```
brew install cmake
```
2. Generate build files:
```
cmake .
```
3. Build:
```
make
```
2016-01-12 19:02:30 +00:00
If you wish to build against a local version of core you can invoke `cmake` like so:
```
cmake -DREALM_CORE_VERSION=/path/to/realm-core
```
The given core tree will be built as part of the object store build.
2016-01-12 19:02:30 +00:00
## Testing
```
make run-tests
```