Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 JS / Local database [closed]

I'm looking for a way to store data locally, no matter the type sqlite database or within a file...

I've saw webSql, file Api, localstorage...

My constraints are :

  • No expiration for data, even after clearing the cache (so no localstorage)
  • Read/write
  • Access without a webserver (no http:// but file://)
  • Manipulation with HTML5 or JS
  • Optional : working with firefox

Is it possible ?

like image 978
Kgaut Avatar asked Dec 05 '25 14:12

Kgaut


1 Answers

You can try with the indexedDB?

https://developer.mozilla.org/en-US/docs/IndexedDB

http://caniuse.com/#feat=indexeddb

  • No expiration for data, even after clearing the cache (so no localstorage) => OK (The user can delete the db, but with a different operation than clearing cache)
  • Read/write => OK
  • Access without a webserver (no http:// but file://) => OK
  • Manipulation with HTML5 or JS => OK (Check the javascript API)
  • Optional : working with firefox => OK
like image 137
Getz Avatar answered Dec 08 '25 03:12

Getz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!