Local Database in Framework7

Which database we can use to store data in locally.
Android uses SQLite, Realm, Room database for storing data. Like that what we can use here to store data in local database.

You can use any javascript storage “engine” you want. For example localForage:



A Minimalistic Wrapper for IndexedDB.

Like localForage also key-value based but with additional functionality to find all objects which match one or more attribute conditions.
Another feature is database versioning which allows you to implement backward compatibility in case your applications needs to be extended with other or different fields.

1 Like

I discovered localForage last month. It is simply the best JavaScript implementation of a database IMO. I have it set to use the IndexedDB (which I believe is the default) which allows me to store up to 128 MB of data.