Scott Kyle
c928ab716e
RPC now keeps object keys in the same order
...
Maintaining insertion order when passing objects through the RPC is essential to make the new schema API work.
2016-01-05 13:40:57 -08:00
Scott Kyle
43e14093cc
Change schema API to take properties as an object
...
The keys are names of the properties, which is more natural in JS, but will cause issues with ability to create objects where arrays of values. This feature will be removed in a subsequent commit.
2016-01-05 13:40:57 -08:00
Scott Kyle
e86dc94ee9
Plug small leak from not releasing a JSStringRef
2016-01-05 13:30:27 -08:00
Scott Kyle
213c3d832f
Make RJSStringForValue use consistent exception style
2016-01-05 13:30:27 -08:00
Scott Kyle
f5047af3bc
Improve error messages inside RJSUtil
2016-01-05 13:30:27 -08:00
Scott Kyle
2bfedc5d8a
Merge branch 'sk-project-cleanup'
...
* sk-project-cleanup:
Fix for failing React tests
Rename JS test files to be consistent
Cleanup and fix resolving JS test files
Cleanup source groups in Xcode project
Move RealmJS.mm to correct location
2016-01-05 13:19:02 -08:00
Scott Kyle
51f9bbcda4
Merge branch 'sk-snapshot-results'
...
* sk-snapshot-results:
Explicitly check if row is attached
Add methods to create snapshot of List and Results
Update to Realm Core 0.95.5
2016-01-05 13:16:27 -08:00
Ari Lazier
518133e769
bdash pr fixes
2016-01-04 18:13:09 -08:00
Ari Lazier
24be3ab825
remove unnedded constructors/destructor
2016-01-04 16:51:51 -08:00
Ari Lazier
3e45625748
pr fixes
2016-01-04 16:37:07 -08:00
Ari Lazier
4c7d6d8b2f
remove unnecessary const cast
2016-01-04 16:27:37 -08:00
Ari Lazier
d964c77d2d
store ObjectSchema as a pointer rather than a reference
2016-01-04 16:21:28 -08:00
Scott Kyle
a9b9e479cf
Explicitly check if row is attached
2016-01-04 16:17:28 -08:00
Ari Lazier
df901c636f
store ObjectSchema as a pointer rather than a reference
2016-01-04 16:04:01 -08:00
Ari Lazier
aa5e1bef7d
remove invalid usage of const Schema
2016-01-04 15:54:03 -08:00
Ari Lazier
148abd4b7b
merge latest object store changes
2016-01-04 15:42:32 -08:00
Scott Kyle
632f9d737e
Add methods to create snapshot of List and Results
...
The Results class was updated to match the style of List and include a flag (m_live) that determines if it should sync updates. If an object in the static Results is deleted, then it will return null.
2015-12-30 16:53:26 -08:00
Scott Kyle
602613b992
Update to Realm Core 0.95.5
2015-12-30 16:53:26 -08:00
Scott Kyle
5fe90c9904
Move RealmJS.mm to correct location
2015-12-29 14:55:20 -08:00
Ari Lazier
a73229758d
pr feedback
2015-12-18 14:37:41 -08:00
Ari Lazier
df9468f8d0
fix for copy assignment
2015-12-17 18:40:26 -08:00
Ari Lazier
9b907b336a
results should store const ObjectSchema
2015-12-17 17:32:51 -08:00
Ari Lazier
86e95fb9b1
Schema stored in Realm::Config should be const
2015-12-17 16:18:16 -08:00
Scott Kyle
41ef7c41a6
Fix crash caused by accessing invalid ObjectSchema
...
These references would eventually become invalid. The quickest fix is for them to no longer be references. The longer-term fix might be to only store the object type and dynamically retrieve the ObjectSchema only when necessary.
Fixes #181
2015-12-16 13:04:53 -08:00
Scott Kyle
4109c86343
Make Realm object properties enumerable
2015-12-08 03:26:57 -08:00
Ari Lazier
5d1e9d4dd3
pr fixes
2015-11-30 11:47:32 -08:00
Ari Lazier
71ef42bd61
move rpc react modele back to lib
2015-11-30 11:31:58 -08:00
Ari Lazier
ca843cb48b
pr fixes
2015-11-30 11:23:30 -08:00
Ari Lazier
5f584f747f
use underscore rather than dash
2015-11-30 11:23:29 -08:00
Ari Lazier
eb44b27633
move everything/rename to make room for android
2015-11-30 11:23:29 -08:00
Ari Lazier
f714d11293
Merge pull request #172 from realm/al-keypath
...
tests for keypath queries
2015-11-29 19:29:14 -08:00
Ari Lazier
7ad2786359
Merge pull request #168 from realm/al-os-merge
...
Integrate new Results class
2015-11-29 18:58:55 -08:00
Ari Lazier
cdb254ca44
tests for keypath queries
2015-11-29 18:56:50 -08:00
Ari Lazier
8a00a2f92a
call results constructor taking a table when no query is provided
2015-11-25 19:59:51 -08:00
Ari Lazier
39e3b017a4
integrate new results class
2015-11-25 19:57:15 -08:00
Ari Lazier
1b37e0945f
make None the first enum type
2015-11-25 19:10:59 -08:00
Ari Lazier
96994a24cc
use current_group() helper
2015-11-25 18:34:36 -08:00
Ari Lazier
fbb1f42c6e
don't merge predicate to negated and group
2015-11-25 18:32:13 -08:00
Ari Lazier
6449d34735
more tests
2015-11-25 12:57:56 -08:00
Ari Lazier
3fba2f3a19
add a few more tests
2015-11-25 12:54:13 -08:00
Ari Lazier
d967a8a4e4
process compound operators in the correct order
2015-11-25 12:49:31 -08:00
Ari Lazier
2324f8cc9b
fix for mixed && and || queries
2015-11-24 11:18:03 -08:00
Ari Lazier
812930285e
compount parser tests
2015-11-24 10:39:42 -08:00
Ari Lazier
63ffaf7adb
fix for reload in example
2015-11-23 19:00:31 -08:00
Ari Lazier
2096f7aa00
latest from object store branch
2015-11-23 11:26:50 -08:00
Ari Lazier
e3b638edf3
pr fixes
2015-11-23 08:56:36 -08:00
Ari Lazier
9ea8ab25c5
pr feedback
2015-11-23 08:47:09 -08:00
Ari Lazier
49955a03e3
use cpp extension for pure cpp files
2015-11-20 19:32:35 -08:00
Ari Lazier
df7474feb3
run parser tests in RealmJSTests
2015-11-20 15:16:35 -08:00
Ari Lazier
40f0e5f274
move queryTests to parser dir
2015-11-20 14:51:04 -08:00