sitcomlab / simport-learning-app

Learning tool on location data privacy, that reflects to users, what conclusions can be drawn from their location histories. This is part of the SIMPORT project.
https://www.simport.net
MIT License
7 stars 6 forks source link

#299: create db before checking encryption #301

Closed felixerdy closed 1 year ago

felixerdy commented 1 year ago

When the app starts for the first time, there was no database file in the filesystem. That's why the isDatabaseEncrypted function failed.

In this PR we are checking if the database exists. If not, we are creating a temporarily connection which creates the database file in the filesystem. During the isDatabaseEncrypted function, there should now always be an existing database.

Closes #299

jbraese commented 1 year ago

Looks good!