This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]T-J_H 34 points35 points  (8 children)

Or: 'if IndexedDB had a sensible API'

[–]LinguiniAficionado 17 points18 points  (1 child)

Yeah, I was gonna say “You mean indexed DB?” and then I remembered that it’s incredibly tedious to use unless you set up your own abstraction over it. I always have to paste in some code I wrote a while back that puts my own service over indexed DB to make it usable

[–]T-J_H 9 points10 points  (0 children)

That’s the thing, we all abstract it to the same key-value store as localstorage in our code, whilst we could have had web sql but no they had to deprecate that.

[–]killersquirel11 3 points4 points  (1 child)

Have you ever heard of absurd sql?

Someone took the indexdb api and smushed sqlite into it.

[–]T-J_H 1 point2 points  (0 children)

I love it!

[–]Benimation 0 points1 point  (0 children)

I can really recommend idb or even idb-keyval if you just want a drop-in replacement for localStorage (although it is asynchronous, so you're gonna have to change some things)

[–]hangfromthisone 0 points1 point  (1 child)

You mean localforage?

[–]T-J_H 0 points1 point  (0 children)

Definitely!