Would support for Web SQL Database be dropped?

597 views
Skip to first unread message

Adeel Ejaz

unread,
Mar 4, 2011, 11:54:32 AM3/4/11
to Chromium HTML5
Hi,

We are building a rich web application and plan to allow offline
access with local data storage. I wanted to use Google Gears but I
found out its been deprecated in favour of new HTML5 technologies. I
turned my attention to Web SQL Database but it seems Web SQL is no
longer in "active maintenance" which leads me to believe that it will
be dropped from HTML spec (Source: http://www.w3.org/TR/webdatabase/)

I have spent all day today playing with localStorage but I can see a
problem. I'm looking for a solution that allows me to save data as
rows and be able search on certain columns (like name, phone, etc).
localStorage stores data in key value pairs which means it isn't going
to be useful for using searches (I'm open to suggestion if someone can
give any hints).

Using Web SQL will allow me to run queries and do searches. My only
worry is a year or two in to the project, Web SQL might be dropped by
Google Chrome and I'll end up in a sticky situation.

I would appreciate any input. Thanks

PS: I'm not worried about any other browser support as I have agreed
to deploy the web app only on Chrome. We will update all our customers
with latest copy of Chrome and it will be used to access the app (I
know, lucky me!), so browser compatibility isn't a biggy.

Jeremy Orlow

unread,
Mar 4, 2011, 1:39:40 PM3/4/11
to Adeel Ejaz, Chromium HTML5
WebSQLDatabase will be supported for some time to come, but 1 to 2 years out is a long time and I don't think anyone can give you any guarantees about Chrome then.

Another technology is IndexedDB.  It's much less mature (Chrome 11 will be the first stable version to get it), but Mozilla and Microsoft are implementing it and it does seem to be where things are headed in the future.

You can read more about it here: https://developer.mozilla.org/en/IndexedDB

J

Priyajeet Hora

unread,
Mar 6, 2011, 10:34:28 PM3/6/11
to Jeremy Orlow, Adeel Ejaz, Chromium HTML5
I liked this demo

Would be nice to see js frameworks start adopting it for their data stores in the future.


--
You received this message because you are subscribed to the Google Groups "Chromium HTML5" group.
To post to this group, send email to chromiu...@chromium.org.
To unsubscribe from this group, send email to chromium-html...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-html5/?hl=en.

Reply all
Reply to author
Forward
0 new messages