Local database handling in elceton desktop app


I am creating a desktop app using react js .
And i want to fetch the info from my local database.
and also want to update the fetched info.


You could package your app with SQLite, which is a file-based database. But depending on what you’re storing, you might be able to get away with just using localStorage. If you want to store JSON blobs, there’s a great json storage library that I’ve used in the past.


Can You please help me with help of sample code for ubuntu?