Questions tagged [data-persistence]
256 questions
0
votes
0 answers
Firestore with Ionic Vue: Did I successfully enable persistance?
I build a basic Ionic Vue app that queries a couple of documents from a Firebase Firestore and lists them. It is also possible to add new documents via the app.
The docs state that Firestore supports an offline mode:
Cloud Firestore supports…

Julian
- 591
- 5
- 14
0
votes
0 answers
Persistence diagram for points on the unit circle
I am trying to code up a persistence diagram for points on a circle from scratch, more or less, I don't want to rely on any packages to construct the diagram for me. I have posted the code I have so far below, I have three issues that I would love…

The Mad Scientist
- 123
- 5
0
votes
0 answers
iOS file system directory data not persisting between builds, will it persist between App Store updates?
I am saving a movie file in an iOS documents directory. The file is saved fine and I can access and play it after it has been saved. But when I rebuild the project I can't access the file, when I have checked the urls the application parent…

Badger
- 31
- 4
0
votes
0 answers
Automate object and .pickle file creation
I am creating a registration program (like the fields for Person and Email that you see at the front of notebooks), in order to implement some concepts into a bigger project.
I'm trying to store multiple objects in a .pickle file. I tried the…

Red Hot Coffee
- 3
- 2
0
votes
1 answer
error in storing a map of strig in class object in a binary file
i have a string object in map object which is in a class object then it is giving me error what to do
#include
#include
#include

Aman
- 17
- 3
0
votes
1 answer
Saving an Object and being able to update its attributes
I am creating a POS system in Python, which is almost complete. (GUI not included). However, I want to be able to store the items that a user registers.
I tried saving the object to a file, but that did not help:
with open('myObject.pkl', 'wb') as…

Red Hot Coffee
- 3
- 2
0
votes
1 answer
Data Persistence between Scenes in Unity creates multiple instances, regardless of conditional destroying of extra Game Objects
I am creating a game where the first scene will have a generated map saved as a 2D array, then the next scene takes care of all the combat. Once that's done, user needs to go back to the first scene and see the same map. I have followed Unity's…

Yakuman
- 173
- 9
0
votes
0 answers
expirationTs on the entity class ArdEvent is not a valid type for a serialized mappingThe attribute type must implement the Serializable interface
I'm getting the following error when I try to use JPA to persist a field entity into the database saying the variable must be serialized. The tricky part is that, I have the same variable name in a different Entity class. Are they…

cubila
- 43
- 2
- 8
0
votes
1 answer
Best way to securely cache data in a kotlin app?
New-ish to Kotlin and building an app. I am wondering the best way to securely cache data? Any suggestions are appreciated. Thanks!

Monica
- 121
- 1
- 7
0
votes
1 answer
Java Persistence Entitymanager - Select from another query's result set
I currently have the query stated below. I know this works as a SQL query, but because I am using the EntityManager, from javax.persistence, it requires JPQL. And I don't know JPQL. If there is a way to rewrite this in JPQL that would be nice.
Query…

Tijn van Veghel
- 17
- 4
0
votes
1 answer
Why data variables are persisting the old values in Flutter app?
I am so confused about the data persistence in my app. I am using google drive api to fetch a spreadsheet file(.xlsx) and then read and show the excel cell values in my app using an itemBuilder. The main problem is that when I edit some cells in my…

Madhav mishra
- 313
- 4
- 20
0
votes
1 answer
Write Dictionary to File in Swift
I'm trying to write a simple Dictionary to a .plist file in swift. I have written the code in an extension of the Dictionary class, for convenience. Here's what it looks like.
extension Dictionary {
func writeToPath (path: String) {
do…

Build
- 80
- 8
0
votes
1 answer
A copy of database in the Front-End side (Store) to avoid fetching data multiple times
I have a large database, so I decided to create a copy of this database on the front-end side in my Store (I am using Vuex with Vuejs), i.e. each table in the database has a corresponding array in the Store, and every time I have an update I persist…

Omar
- 300
- 5
- 14
0
votes
2 answers
Reading and Storing data from Firebase realtime database in Flutter
I have some data in the form of objects on my firebase rtdb, I just want to retrieve the data on my device and save it using the persistence method. I've been on this for a month now and looked out for a lot of possible solutions but that doesn't…

Ayush Nanglia
- 89
- 1
- 3
- 10
0
votes
0 answers
Saving Object Properties as Persistant Data -PHP
I'm teaching myself PHP from tutorials, and am trying to save some object properties to a php file, as persistant data, so I can later retrieve them in another user session. (Yesi, I know how to save to a database, but for this simple case I want to…

user2671645
- 11
- 1