You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a scenario is that the app needs to run dynamic query from server, we used to use typeorm+sqlite and we can manage that like DataSource.query("select * from xxx")
As we changed to realm database, i found that there is no equivalent api for that, the only similar one is that Realm.objects("ObjectName").filtered("xx == xx")
But it's only for read data from database, can't update or insert data in the database.
Is that possible we can have a api like Realm.query("RQL here") ?
Solution
No response
Alternatives
No response
How important is this improvement for you?
Would be a major improvement
Feature would mainly be used with
Local Database only
The text was updated successfully, but these errors were encountered:
Hmmmm. I don't think realm might be able to run dynamic query for insert and update. It is a object oriented database and the underlining database engine is really different from any object relational database (mysql,sqlite,postgress etc). Being that the underlining engine in realm does not support raw sql queries I do not think realm support this feature out of the box. I have been using realm database for close to 4 years now for most of my apps.
My advise would be for u to build a wrapper. Something that can take sql query, then parse the SQL query by extracting the table name, the type of query and the object or information you want to write to the table. Maybe this might work for you
Problem
We have a scenario is that the app needs to run dynamic query from server, we used to use typeorm+sqlite and we can manage that like
DataSource.query("select * from xxx")
As we changed to realm database, i found that there is no equivalent api for that, the only similar one is that
Realm.objects("ObjectName").filtered("xx == xx")
But it's only for read data from database, can't update or insert data in the database.
Is that possible we can have a api like
Realm.query("RQL here")
?Solution
No response
Alternatives
No response
How important is this improvement for you?
Would be a major improvement
Feature would mainly be used with
Local Database only
The text was updated successfully, but these errors were encountered: