Commit Graph

23 Commits

Author SHA1 Message Date
Ari Lazier 1e36beb263 store ObjectSchema as a pointer rather than a reference 2016-01-04 16:21:28 -08:00
Ari Lazier c25d08eb34 store ObjectSchema as a pointer rather than a reference 2016-01-04 16:04:01 -08:00
Ari Lazier 143564d0b9 results should store const ObjectSchema 2015-12-17 17:32:51 -08:00
Ari Lazier dc67be30fc Schema stored in Realm::Config should be const 2015-12-17 16:18:16 -08:00
Scott Kyle 253a572ca7 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
Ari Lazier c9405da94f integrate new results class 2015-11-25 19:57:15 -08:00
Ari Lazier 260ca18845 support query format strings 2015-11-19 13:05:37 -08:00
Ari Lazier e3c9ec8ee7 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 9d373e630a 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
Ari Lazier 2e2beabc40 change the license before starting the beta 2015-10-27 14:15:21 -07:00
Ari Lazier faa1297d3b support null for basic propety types 2015-10-27 12:13:57 -07:00
Ari Lazier ccdfaa8ae9 use typed exceptions 2015-10-27 09:39:52 -07:00
Scott Kyle ff9b73ec2f Non-existent object getters shouldn't throw exceptions 2015-10-27 09:39:52 -07:00
Ari Lazier ed193d8f5c make list members private 2015-10-26 13:32:29 -07:00
Ari Lazier c9ef337552 make object members private 2015-10-26 13:24:27 -07:00
Ari Lazier dace77579b store schema and prototypes on the realm object 2015-10-19 13:39:21 -07:00
Ari Lazier 8a2e24daac move property getters to object store code 2015-10-13 15:25:06 -07:00
Scott Kyle b70e5432b7 Setting properties outside transaction should throw
Resolves #40
2015-10-12 02:02:23 -07:00
Ari Lazier 591ec90e67 support defaults 2015-09-04 15:43:26 -07:00
Ari Lazier e2836f77f9 fix for partial update of string properties 2015-09-03 14:37:22 -07:00
Ari Lazier 9ca8e46928 primary keys and upsert 2015-09-03 14:05:56 -07:00
Ari Lazier 942af6a754 todo example 2015-08-24 09:22:37 -07:00
Ari Lazier 8ad79f1918 missing files and project fixes 2015-08-13 09:28:53 -07:00