ios - In Realm, Is there any way to make a custom array of database rows that I can still Query? -


if need custom build list of database rows because can not query (i need correlate external data), there anyway make resulting rlmarray able queried?

when run following line:

return [all_matches objectswhere:@"rootguid == ''"]; 

i following exception:

this method can called on rlmarray instances retrieved rlmrealm

the thing can think of have empty column can manually flag it, seems bit outrageous.

i found decent way around this. instead of collecting instances in rlmarray, collected primary key within nsarray. then, when want rlmresult specific values found, call.

[myrealmtable objectswhere:@"primarykey in %@", collected_key_array]; 

Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -