Questions regarding specifically about the free database engine of the Realm Platform.
Questions tagged [realm-database]
34 questions
9
votes
2 answers
How to backup Realm DB in Android before deleting the Realm file. Is there any way to restore the backup file?
I am working on an Android application where I will be deleting Realm before copying the new data to Realm. Is there any way I can take backup of the data before deleting it and restore it back if something is wrong when using realm.copyToRealm() ?

Chaitanya
- 111
- 1
- 6
5
votes
1 answer
How to define realm schema for property of object (or dictionary) with array as its value?
I have data that looks like this
PersonJSONData = {
"key1": {
"name": "odo",
"age": 10,
"favorites": {
"food": ["rice", "chocolate", "sugar"],
"game": [],
"color": ["red"]
},
…

catreedle
- 51
- 6
4
votes
0 answers
Realm import db from csv. How to define primary
Im trying to create realm db from csv file but realm studio fail while creating with this error :
Attempting to create an object of type with an exixting
primary key value 'null'.
How to define primary key in csv file ? Or what is my mistake?

Roman
- 803
- 2
- 10
- 17
3
votes
0 answers
How to unlink/clone object from RealmDB in Swift
RealmDB is magically linked with objects it adds, reads. But that overhead is not always needed.
I can manually read all fields and assign them to new object but what is canonical way to get data unbinded from RealmDB?

user3130782
- 841
- 1
- 6
- 15
3
votes
2 answers
Is there a way to change the Data Type in Realm Database?
As you can see the image, I totally mess up the Data Type (The red circle). Is there a way to change the Data Type into Integer?
EDIT
I want to change the data type from a String to an Int and I have existing data so I can't start with a fresh…

kit
- 1,166
- 5
- 16
- 23
3
votes
1 answer
Is realm database have a storage limit for mobile application?
I am creating an android application and its also working offline mode for offline storage i used Realm Database.
What i want to do
first i want check the database size before insert any data
is realm provide facility/code for checking database…

Arbaz.in
- 1,478
- 2
- 19
- 41
2
votes
2 answers
How to pass data from background android service to react-native
I am building an react-native app. I have a background android service that receives a push notification. I need to store the notification information(title, description...) on a react-native database or in asyncstorage... because in my app I have…

J. Alan
- 51
- 2
2
votes
0 answers
Write to Realm from another thread (event)
I'm writing a .NET UWP app for real-time monitoring of a Bluetooth LE device. I am succesful in using Realm DB within MainPage, Content Dialogs, etc.
For receiving data of the BLE device, I have defined an event Characteristic_ValueChanged.
My goal…

fordjameslost
- 21
- 2
2
votes
1 answer
Is there a way to reorder the records in Realm Studio?
I am using a Realm database in an iOS app and utilize Realm Studio (RS) to manage the data. Is there a way to reorder record order in Realm Studio, or delete a record?
Thanks.
Blessings,
—Mark

Garageshop
- 101
- 9
1
vote
1 answer
"Table name too long" crash with realm-cocoa (Realm DB)
I'm getting a "Table name too long" error after moving some code into a framework. After going through the stack trace, breaking to get the table names on schema creation, then manually trying to create the longer table names. I've determined the…

user1956608
- 285
- 1
- 2
- 10
1
vote
2 answers
Sorting is not working in realm db in my application
Im new in realm db. I completed add and get data in realm db. But, I couldn't sort(ascending and descending).Im my code it display items in listview. Listview contains 5 list and each list contains 4 field(name, age, skill and date). if I…

Ana
- 174
- 1
- 2
- 10
1
vote
2 answers
Realm model contains property but not found it at runtime
I am getting error as below
Invalid property name , reason: 'Property 'IsRecordDeleted' not found in object of type 'MyCustomModel'
Where as my Model is as Under
@objcMembers public class MyCustomModel : Object {
dynamic var Id : String =…

Android teem
- 780
- 2
- 13
- 36
1
vote
1 answer
What is the application size impact of using Realm DB in Swift on iOS
I recently came across Realm DB for Swift iOS, and it looks very promising. With this said, after importing the library, the app looks like it's taking about 48 MB of storage on the device, despite very minimal code being included in the app. Is…

Larry Chen
- 53
- 1
- 6
1
vote
1 answer
React Native Realm DB "objects()" blocks/freeze the UI
I have a JS service whose functions return promises. Those promises uses the Realm DB library. However, whenever my action creators with from React w/ Redux Thunk calls these functions, the UI just freezes. I cannot display the loading circle, the…

Jediah Dizon
- 38
- 5
0
votes
2 answers
Error in Realm invalid property name when I want to filter data, property not found
I get the error *** Terminating app due to uncaught exception 'Invalid property name', reason: 'Property 'read' not found in object of type 'Book'' when I want to filter my data. My structure:
class Book: Object, Codable {
@objc dynamic var author =…

Mischa
- 27
- 4