Skip to content
This repository

WebSQL Adapter #63

Closed
daleharvey opened this Issue May 29, 2012 · 18 comments

7 participants

Dale  Harvey Sean Healy Neville Franks Parashuram N Jan Lehnardt Chris Anderson Sam Dutton
Dale  Harvey
Owner

for opera + safari (+mobile)

Sean Healy

Adding WebSQL would be great for browser support!

Neville Franks
nevf commented June 05, 2012

+1 Until indexeddb is available on Mobile etc. we really need WebSQL support.

Parashuram N

How about using the IndexedDB Shim for WebSQL - you would get WebSql support right away !! :)

http://nparashuram.com/IndexedDBShim

Dale  Harvey
Owner

Very nice, I had no idea that existed

Parashuram N

Here is PouchDB working on Opera and Safari -

http://nparashuram.com/trialtool/index.html#example=/IndexedDBShim/examples/pouchdb.html

More info about the shim - http://nparashuram.com/IndexedDBShim/

Btw, I just finished writing it :)

Dale  Harvey
Owner

This is amazing, thanks axemclion

Give me a heads up if you want any guidance on a pull request (the idb <-> idb replication is currently broken, I will fix shortly), otherwise I will write it up shortly

Awesome work

Jan Lehnardt
janl commented June 10, 2012

Win!

Neville Franks
nevf commented June 11, 2012

This is indeed very promising. At present it doesn't work on my iPad which I reported to Parashuram at: axemclion/IndexedDBShim#5

Parashuram N

Fixed it. THnx.

Neville Franks
nevf commented June 11, 2012

@axemclion It took a couple of refreshes on my iPad but all tests are passing now. Great job.

Chris Anderson

Oomph ok looks good

Dale  Harvey
Owner

@axemclion I attempted to get the facebook shim integrated, I used your fork but I was getting inactive transaction errors on any write, you said you were getting further so any pointers?

Sorry I keep missing you on skype, we are in awkward timezones for each other

Planning to get this integrated asap since the node support is in, ince we get this in basic its a matter of hammering on testing then release :)

Parashuram N

Figured out what the issue was - and both Facebook and my polyfills seem to have this issue - everytime you delete a pouch, and then suddenly try to create it, the polyfill do that in the same event-loop. Hence, the tables already seem to exist. If you disable Pouch.destroy in the initTestDB method of test.util.js, all the basic tests seem to run. Can you confirm ?

Dale  Harvey
Owner

Good work I will test the same and see what happens

Sorry for the delays, I have a new testrunner script in works that ended up a much bigger change than I expected

Dale  Harvey daleharvey referenced this issue from a commit December 29, 2012
Commit has since been removed from the repository and is no longer available.
Dale  Harvey
Owner

\o/

Dale  Harvey daleharvey closed this December 29, 2012
Sam Dutton

Should PouchDB work with WebSQL now? I get an error if I try to use PouchDB on Safari without IndexedDBShim:

TypeError: 'undefined' is not an object (evaluating 'Pouch.adapters[t].valid')

Dale  Harvey
Owner

What version of safari are you using (and just in case, are you in private browsing, that wont work)

Sam Dutton

Hi Dale -- Safari 6.0.5 (8536.30.1) on Mac OS X 10.8.4 -- not private browsing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.