(#3773) - update docs to be more accurate

These updates are based on stuff I noticed from
this blog post:

http://gonehybrid.com/how-to-use-pouchdb-sqlite-for-local-storage-in-your-ionic-app/

1. The SQLite Plugin is actually not faster than
   the native IndexedDB/WebSQL, at least anymore.
   That statement about "often faster" is based on
   my own experience with the SQLite Plugin from back
   in Android 2.3 days, when a spinning GIF would be
   stuck while WebSQL was processing heavy DB operations,
   whereas it wouldn't with the SQLite Plugin.

   This is
   not an issue that I've seen with PouchDB anymore, and in
   fact the SQLite Plugin seems to have gotten slower in recent
   months, to the point where it's noticeably slower than either
   WebSQL or IndexedDB.

2. A lot lot LOT of people are using PouchDB with Ionic, and it
   pains me that they don't know about `$q.when()`. Makes your
   code much simpler.
2 files changed
tree: 6343666832542786e8699e5be678672c2fb5b5cb
  1. bin/
  2. docs/
  3. extras/
  4. lib/
  5. scripts/
  6. tests/
  7. .gitignore
  8. .jshintignore
  9. .jshintrc
  10. .npmignore
  11. .travis.yml
  12. bower.json
  13. component.json
  14. CONTRIBUTING.md
  15. LICENSE
  16. package.json
  17. README.md
  18. TESTING.md
README.md

PouchDB - The Javascript Database that Syncs

Build Status

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.

Using PouchDB

To get started using PouchDB check out our Documentation and the API Documentation.

Contributors

If you want to get involved then check out the contributing guide

Example

var db = new PouchDB('dbname');

db.put({
 _id: 'dave@gmail.com',
 name: 'David',
 age: 68
});

db.changes().on('change', function() {
  console.log('Ch-Ch-Changes');
});

db.replicate.to('http://example.com/mydb');