| commit | ac3536eaa9abf6216680eb4ba2192ee3139d770d | [log] [tgz] |
|---|---|---|
| author | Nolan Lawson <nolan.lawson@gmail.com> | Sat Dec 27 14:14:10 2014 -0800 |
| committer | Nolan Lawson <nolan.lawson@gmail.com> | Sun Dec 28 15:54:37 2014 -0800 |
| tree | 1c4b9518248dc53edd91205edca6e5691a6954b0 | |
| parent | 28305b3cdfbf9e99d707524fd1dba2673fae17ed [diff] |
(#3285) - refactor idb changes
Also fix a small thing I noticed with blob support:
if the DB is cached, then we should use the `api._blobSupport`
from the cached DB. Looks like before, we would just assume
no blob support the second time you opened the database.
Also used `utils.Map()` instead of `{}` where
appropriate.
PouchDB was written to help web developers build applications that work as well offline as well as they do online, applications save data locally so the user can use all the features of an app even while offline and synchronise the data between clients so they have up to date data wherever they go.
PouchDB is a free open source project, written in Javascript by these wonderful contributors and inspired by Apache CouchDB.
To get started using PouchDB check out our Documentation and the API Documentation.
If you want to get involved then check out the contributing guide
var db = new PouchDB('dbname'); db.put({ _id: 'dave@gmail.com', name: 'David', age: 66 }); db.changes().on('change', function() { console.log('Ch-Ch-Changes'); }); db.replicate.to('http://example.com/mydb');