SPatel
SPatel

Reputation: 4946

query in Realm database

Im using realm in my iOS application an i want to fire query on silent push notification, query string is given by push. Is it possible to query realm database in single string? like SQL

Upvotes: 1

Views: 2959

Answers (1)

David Pasztor
David Pasztor

Reputation: 54706

You cannot use SQL queries, since Realm is a NoSQL database, but you can use NSPredicates to query it and you can generate an NSPredicate from a string. Have a look at Filtering in the official Realm documentation

Upvotes: 3

Related Questions