mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-09 13:55:49 +00:00
error handling cleanup
This commit is contained in:
parent
3453515601
commit
b5372a40e9
@ -318,8 +318,8 @@ ObjectStore::Schema ObjectStore::schema_from_group(Group *group) {
|
|||||||
return schema;
|
return schema;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ObjectStore::are_indexes_up_to_date(Group *group, Schema &schema) {
|
bool ObjectStore::indexes_are_up_to_date(Group *group, Schema &schema) {
|
||||||
for (auto& object_schema:schema) {
|
for (auto &object_schema:schema) {
|
||||||
TableRef table = table_for_object_type(group, object_schema.name);
|
TableRef table = table_for_object_type(group, object_schema.name);
|
||||||
if (!table) {
|
if (!table) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -57,7 +57,7 @@ namespace realm {
|
|||||||
static Schema schema_from_group(Group *group);
|
static Schema schema_from_group(Group *group);
|
||||||
|
|
||||||
// check if indexes are up to date - if false you need to call update_realm_with_schema
|
// check if indexes are up to date - if false you need to call update_realm_with_schema
|
||||||
static bool are_indexes_up_to_date(Group *group, Schema &schema);
|
static bool indexes_are_up_to_date(Group *group, Schema &schema);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// set a new schema version
|
// set a new schema version
|
||||||
|
Loading…
x
Reference in New Issue
Block a user