Sql storage for PWA


#1

What is the best and current method for using sql like methods of local storage when used in a browser?
I assume SQLite is not an option here and it appears some options are no longer available: WebSql ?
What is Ionic2 ( rc3 ) best practice?

I am currently using localStorage to save key/value pairs and am looking for table usage.


#2

I know it might be too late but I had some problems with the localforage library
and then I decided to use the one provided by the ionic team
called Storage
install : npm i @ionic/storage
import : import {Storage} from '@ionic/storage';
instantiate: constructor(public navCtrl: NavControllepublic localforage:Storage) { }
use:
this.localforage.set('results','some result'); this.localforage.get('results') ;

I hope it helps