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
Nabil Hachicha
98cb634a36
using dynamic linker to expose s_globalContextRefToJSCExecutor
2016-01-05 11:08:42 -08:00
Ari Lazier
4270bc2b0f
try to initialize JSContexts
2016-01-05 11:08:42 -08:00
Ari Lazier
3a72bb3ade
finish rename
2016-01-05 11:08:42 -08:00
Ari Lazier
eea8658627
put our react module in our aar
2016-01-05 11:08:42 -08:00
Nabil Hachicha
28d1f92a7e
add Demo project based on the built realmreact lib
2016-01-05 11:07:21 -08:00
Ari Lazier
1fa0098158
empty implementations for platform methods
2016-01-05 11:07:21 -08:00
Ari Lazier
8104738e1a
use gcc
2016-01-05 11:07:21 -08:00
Ari Lazier
50ecaa3b22
just use one symlink to the binding source, make more stuff compile
2016-01-05 11:05:44 -08:00
Ari Lazier
3aaf988953
fixes
2016-01-05 11:05:27 -08:00
Nabil Hachicha
c3d5fd4e09
add Core include + fix c++14 issue
2016-01-05 11:04:06 -08:00
Ari Lazier
fb1d6b6a93
more import fixes
2016-01-05 11:04:06 -08:00
Ari Lazier
2974d87560
fix imports
2016-01-05 11:04:06 -08:00
Ari Lazier
62ae41327d
include JSBase
2016-01-05 11:04:06 -08:00
Nabil Hachicha
5b06c41163
adding module deps + fixing gradle
2016-01-05 11:04:06 -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
Ari Lazier
494fbd3a06
object tests
2015-11-20 14:14:35 -08:00
Ari Lazier
7b993d2f09
turn off parser analyze
2015-11-19 15:59:16 -08:00
Ari Lazier
22ca94e36e
test and bug fixes for data queries
2015-11-19 15:17:57 -08:00
Ari Lazier
0e8ca5ed05
add binary query support
2015-11-19 13:05:37 -08:00
Ari Lazier
aa3bad1a69
more string tests and bugfix
2015-11-19 13:05:37 -08:00
Ari Lazier
be93d3dd58
first string tests and custom error messages
2015-11-19 13:05:37 -08:00
Ari Lazier
20ac833e41
bool tests
2015-11-19 13:05:37 -08:00
Ari Lazier
5784bbe6ed
start porting over objc query tests
2015-11-19 13:05:37 -08:00
Ari Lazier
2cc88b5a26
fix for not predicate
2015-11-19 13:05:37 -08:00
Ari Lazier
3828417f32
compound tests
2015-11-19 13:05:37 -08:00
Ari Lazier
5dda5f4b6b
test not, remove requirement of padding
2015-11-19 13:05:37 -08:00
Ari Lazier
f402a45a40
change argument syntax to use $ instead of {}
2015-11-19 13:05:37 -08:00
Ari Lazier
5c56a5c87c
tests for all expressions/operators
2015-11-19 13:05:37 -08:00
Ari Lazier
735b49ff2a
fix and tests for arguments
2015-11-19 13:05:37 -08:00
Ari Lazier
676b86d194
more grammer tests
2015-11-19 13:05:37 -08:00
Ari Lazier
f46e92468c
add basic test harness for grammer validation
2015-11-19 13:05:37 -08:00
Ari Lazier
7829d21bd4
add macro to enable/disable debug token printing
2015-11-19 13:05:37 -08:00
Ari Lazier
9309bbfbf8
make precondition a macro
2015-11-19 13:05:37 -08:00
Ari Lazier
f3d7855c99
test and fix for date queries
2015-11-19 13:05:37 -08:00
Ari Lazier
3a198ec507
support query format strings
2015-11-19 13:05:37 -08:00
Ari Lazier
3b698400b7
support for querying boolean properties
2015-11-19 13:05:37 -08:00
Ari Lazier
bb16ffa7fe
add required padding around string operators, use pegtl_istring_t
2015-11-19 13:05:37 -08:00
Ari Lazier
e7e4b6715e
move query building to a separate file
2015-11-19 13:05:37 -08:00
Ari Lazier
2f1c26ad73
remove duplicate code, add argument expression type
2015-11-19 13:05:37 -08:00
Ari Lazier
c776290df8
code cleanup, bugfixes
2015-11-19 13:05:37 -08:00
Ari Lazier
d8c89c7098
support for truepredicate/falsepredicate, single quote strings - all tests now pass
2015-11-19 13:05:37 -08:00
Ari Lazier
c7c0698ad0
hook it up
2015-11-19 13:05:37 -08:00
Ari Lazier
11b27dbdbf
store negated predicates in parse tree
2015-11-19 13:05:37 -08:00
Ari Lazier
4b3417736f
support OR with proper precedence
2015-11-19 13:05:37 -08:00
Ari Lazier
5bdc6eba93
parse tree construction
2015-11-19 13:05:37 -08:00
Ari Lazier
2f287d046d
full grammar
2015-11-19 13:05:37 -08:00
Ari Lazier
ed4e59c8d0
compound predicates
2015-11-19 13:05:37 -08:00
Ari Lazier
6ea80c4ecd
beginnings of a parser
2015-11-19 13:05:37 -08:00
Ari Lazier
d1a579c922
size_t, no std::size_t
2015-11-19 07:07:33 -08:00
Ari Lazier
55851f6d99
fix for rpc constants and other pr feedback
2015-11-18 17:55:30 -08:00
Ari Lazier
a12b6caedb
fixes to list.cpp/hpp based on object store pr feedback - use lowercase strings for property names
2015-11-18 14:36:46 -08:00
Scott Kyle
7b115a934b
ArrayBufferView objects now fully supported
...
Previously we were not accounting for the byte offsets and misunderstood how the Uint8Array constructor worked. The tests now confirm everything works as expected with multiple different typed arrays and slices of the data.
2015-11-17 13:32:32 -08:00
Scott Kyle
616f78ea07
Add support for data properties in RPC layer
...
The data is base64 encoded before being sent via the RPC.
2015-11-17 13:32:31 -08:00
Scott Kyle
3bf84a1b6f
Update data properties to return ArrayBuffers
...
As a convenience, the setters will take typed Arrays (e.g. Uint8Array) since that is a common representation of data in JS (as they are "views" of ArrayBuffer objects).
The tests have been updated to reflect this new behavior.
2015-11-17 13:32:31 -08:00