import DataStore from '../src/datastore' // let circuits = await this.db.getAll('circuits') // console.log(circuits) // let obs = this.db.getStore('circuits').addObserver(undefined,'bogus') // let obs = this.db.getStore('circuits').addObserver('uy0cADaONfPv38th.prop1',{prop1:'test1'}) // // console.log(this.db.getStore('circuits')._observers) // obs.subscribe(console.log) // obs.next({prop1:'test1'}) // obs.next({prop1:'test1', prop2:{prop21:'test21',prop22:'test22'}}) // obs.next({prop1:'test1', prop2:{prop21:'test21',prop22:'test22'}}) // obs.next({prop1:'test1', prop2:{prop21:'test21',prop22:'test22x'}}) // obs.next({prop1:'test2'}) // let obs2 = this.db.getStore('circuits').addobs2erver('.prop1',{prop1:'test1'}) // let obs2 = this.db.getStore('circuits').get() // console.log(this.db.getStore('circuits').subscribe(console.log)) // // obs2.subscribe(console.log) // obs2.next({prop1:'test1'}) // obs2.next({prop1:'test1', prop2:{prop21:'test21',prop22:'test22'}}) // obs2.next({prop1:'test1', prop2:{prop21:'test21',prop22:'test22'}}) // obs2.next({prop1:'test1', prop2:{prop21:'test21',prop22:'test22x'}}) // obs2.next({prop1:'test2'}) // let obs2 = this.db.getStore('circuits').addobs2erver('.prop1',{prop1:'test1'}) // let obs2 = this.db.getStore('circuits').get() // console.log(this.db.getStore('circuits').subscribe(console.log)) // // obs2.subscribe(console.log) // obs2.next([{prop1:'test1'},{prop1:'test1'}]) // obs2.next([{prop1:'test1'},{prop1:'test1'}]) // obs2.next([{prop1:'test1'},{prop1:'test1'},{prop1:'test1'}]) // obs2.next([{prop1:'test1'},{prop1:'test1'},{prop1:'test1'}]) // obs2.next([{prop1:'test1'},{prop1:'test1'},{prop1:'test2'}]) // obs2.next([]) // obs2.next() // console.log(this.db.getStore('circuits')._observers)