jhubert / javascript-sqlite

A very simple javascript layer for a browser based SQLite database.
53 stars 18 forks source link

adapt to the web sql API? #1

Closed paulirish closed 13 years ago

paulirish commented 13 years ago

what you've made is really close to http://www.w3.org/TR/webdatabase/

would be nice to implement it's api so that people can use your script as a polyfill

maybe just a subset of the API.

jhubert commented 13 years ago

Well, this script is actually just a nicer wrapper around the webDatabase functionality.

If I was able to adapt it to not rely on a functional webDatabase, I could see creating an api mapping so that others could use it. If I were to do that, that would mean creating my own polyfill for webDatabase anyway.

I've checked out the list of polyfills for HTML5 DB, and they all seem to require gears, except the DomSQL one (which doesn't seem to persist). Seems like an interesting problem.

paulirish commented 13 years ago

OOooh i see.

i thought you had actually created a polyfill for the whole thing.. but you're right its just a wrapper.

my b!

yeah feel free to tackle that, though it is probably a bit too hard. :)

anyway, nice work. :)