3 ms·
WebSQL does seem a little nutty to me. You’d perennially be in a state of wondering which SQL features it supported and which it didn’t. It would just introduce
by erikpukinskis 9y ago
WebSQL does seem a little nutty to me. You’d perennially be in a state of wondering which SQL features it supported and which it didn’t. It would just introduce a whole other layer of browser incompatibilities as the browser vendors prioritized different features and performance optimizations.
Or, if you committed to keeping it simple and not chasing Postgres and MySQL, then there’s kinda no point. Just write a little SQL wrapper around LocalStorage.
In the end, that’s why we have LocalStorage—it’s simple. Like a file system. It means that you can have a clear sense of what browsers do and do not support.
I guess here’s a direct question: why do you prefer WebSQL over a tiny JS library that does the same thing?