google / elemental2

Type checked access to browser APIs for Java code.
Apache License 2.0
151 stars 38 forks source link

Add an example to read/write indexeddb #153

Open CaledoniaProject opened 3 years ago

CaledoniaProject commented 3 years ago

Can you add an example on IndexedDB? e.g read/write/loop through keys

niloc132 commented 3 years ago

I suggest starting with a resource for how to use IndexedDB in general in the browser - the API should be the same, but the syntax will just be java instead of JS. For example, see https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API.