Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

WebSQL Adapter #63

Closed
daleharvey opened this Issue · 18 comments

7 participants

@daleharvey
Owner

for opera + safari (+mobile)

@seanhealy

Adding WebSQL would be great for browser support!

@nevf

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

@axemclion

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

http://nparashuram.com/IndexedDBShim

@daleharvey
Owner

Very nice, I had no idea that existed

@axemclion

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 :)

@daleharvey
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

@janl

Win!

@nevf

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

@axemclion

Fixed it. THnx.

@nevf

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

@jchris
Owner

Oomph ok looks good

@daleharvey
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 :)

@axemclion

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 ?

@daleharvey
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

@daleharvey daleharvey was assigned
@daleharvey daleharvey referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@daleharvey
Owner

\o/

@daleharvey daleharvey closed this
@samdutton

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')

@daleharvey
Owner

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

@samdutton

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.