You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ Rekord is the most powerful client-side Model/Active Record/ORM you'll find guar
22
22
- Supports composite keys
23
23
- Specify default values
24
24
- Handle collisions with a "revision" field
25
+
- Handle propagating primary key changes returned by the server
25
26
- Automatically refresh when application becomes online
26
27
- Cache no data, all data, or only pending changes
27
28
- Send only changed values to REST/real-time APIs or entire object
@@ -54,7 +55,7 @@ No, of course not. It interacts with a REST API.
54
55
Working with relational data in javascript can be painful. Rekord eases that pain by allowing you to use plain looking objects that can have any type of relationship with other objects. Rekord takes into consideration things like foreign keys - where you need object A successfully remotely saved before you can save object B. These types of constraints are ugly and bothersome to handle yourself and easily result in bugs. If you're familiar with server-side ORMs, then Rekord should be really easy to pick up. You'll find all the same features and even more!
55
56
56
57
3.*How are ID collisions avoided?*
57
-
The key for a model can be given when creating a model - otherwise the key will be given a UUID. This is necessary to be offline capable, models need keys so related models can reference it.
58
+
The key for a model can be given when creating a model - otherwise the key will be given a UUID. This is necessary to be offline capable, models need keys so related models can reference it. If the `keyChanges` option is used the server can return a different key (like an auto-incrementing value) and the key changes will be propagated to all references to that model (foreign keys).
58
59
59
60
4.*What do you mean by capable?*
60
61
Caching data/changes locally and real-time behavior is optional - if you don't want either feature then you don't need to include an implementation.
@@ -69,7 +70,7 @@ The `Rekord.Model` and `Rekord.Search` classes can have custom properties theref
69
70
70
71
The easiest way to install rekord is through bower via `bower install rekord`.
0 commit comments