Questions tagged [pouchdb]

PouchDB is a client side database solution built on top of browser provided databases (IndexedDB and WebSQL). It's implemented in JavaScript and aims to be as much compatible with CouchDB as possible. It can also replicate to and from CouchDB, so is a good fit for offline applications with synchronisation capabilities.

Inroduction

PouchDB is a client side database solution built on top of browser provided databases (IndexedDB and soon WebSQL). It's implemented in JavaScript and aims to be as much compatible with CouchDB as possible. It can also replicate to and from , so is a good fit for offline applications with synchronisation capabilities.

Browser Support

PouchDB supports all modern browsers, using IndexedDB under the hood and falling back to WebSQL where IndexedDB isn't supported. It is fully tested and supported in:

  • Firefox 29+ (Including Firefox OS and Firefox for Android)
  • Chrome 30+
  • Safari 5+
  • Internet Explorer 10+
  • Opera 21+
  • Android 4.0+
  • iOS 7.1+
  • Windows Phone 8+

PouchDB also runs in /PhoneGap, , Electron, and . It is framework-agnostic, and you can use it with , , , , or your framework of choice. There are many adapters, or you can just use PouchDB as-is.

How is PouchDB different from CouchDB?

PouchDB is also a CouchDB client, and you should be able to switch between a local database or an online CouchDB instance without changing any of your application's code.

However, there are some minor differences to note:

  • View Collation - CouchDB uses ICU to order keys in a view query; in PouchDB they are ASCII ordered.
  • View Offset - CouchDB returns an offset property in the view results. In PouchDB, offset just mirrors the skip parameter rather than returning a true offset.

Useful links

Related tags :

1528 questions
0
votes
1 answer

PouchDB Not Working on HTC Device

I've creating an phonegap android app using PouchDB. Here is list of devices that i've tested: - HTC One Mini - not worked - HTC Desire X - not worked - Lenovo A690 - worked fine - LG G2 - worked fine - Emulator Android (4.0.0 - 4.2.2) - worked…
Dion Alexander
  • 169
  • 1
  • 1
  • 7
0
votes
1 answer

Can PouchDB sync with other database solutions such as Percona

I really dig the concept behind PouchDB and would be very interested in learning if it would be possible to sync it with a server database solution such as Percona. http://www.percona.com/
Joshua Jarman
  • 427
  • 1
  • 6
  • 10
0
votes
2 answers

PouchDB Query like sql

with CouchDB is possible do queries "like" SQL. http://guide.couchdb.org/draft/cookbook.html says that How you would do this in SQL: SELECT field FROM table WHERE value="searchterm" How you can do this in CouchDB: Use case: get a result (which can…
Morris
  • 142
  • 1
  • 10
0
votes
2 answers

CouchDB / PouchDB Pass values to MapReduce

So, I'm being a bit creative in searching through persistent graphical objects in HTML5 canvas by using PouchDB and MapRepduce. (I'm trying to tell if the user's clicked on that object with simple bounding box logic) That part isn't all that…
Hunter Beast
  • 782
  • 7
  • 17
0
votes
1 answer

NPM install hanging when installing pouchDB

I have been trying to install pouchdb for 2 days now. I have tried re-installing node. I have tried re-installing python. I have scoured stack overflow and the rest of the interwebz. The install (sudo npm install puchdb) just hangs on here: >…
TyMayn
  • 1,936
  • 2
  • 18
  • 23
0
votes
1 answer

Error during PouchDB to CouchDB replication - "Only DELETE,GET,HEAD,POST allowed"

I'm getting an error when trying to replicate from PouchDB (using http://www.pouchvision.com/) to CouchDB (using a local installation). Investigating the error with Fiddler, it seems that during a replication PouchDB is…
green
  • 55
  • 1
  • 5
-1
votes
1 answer

Type 'Promise' is missing the following properties from type 'Hotel[]': length, pop, push, concat, and 26 more

Related to this question. I decided to rewrite my code with Promises, but how would I Promise an Array of interfaces without requiring all of the Array properties? import { Component, OnInit } from '@angular/core'; import PouchDB from…
-1
votes
2 answers

crypto-pouch showing import error in angular

I have imported crypto pouch in angular like below import CryptoPouch from 'crypto-pouch'; But its showing error like below, Could not find a declaration file for module 'crypto-pouch'.…
-1
votes
1 answer

PouchDB replication fails after a while with error "Unexpected token < in JSON at position 0"

I am trying to replicate a remote CouchDB database with PouchDB. Here is the replication call try { await PouchDB.replicate(sourceDB, targetDB); console.log(`Replication complete!`); } catch (err) { …
Buddyshot
  • 1,614
  • 1
  • 17
  • 44
-1
votes
1 answer

How to sync revisions when calling bulkDocs on pouchdb instance in RxDB

I'm trying to bulk update some RxDB docs, since RxDB does not have a bulk update function I have to use the bulkDocs function on the built in pouchdb instance. I can successfully do this but then my revisions are out of sync. Is there a way to sync…
-1
votes
1 answer

looking to connect my ionic 4 project with pouchdb. But keep getting error 'can't access lexical declaration'

I keep on getting 'can't access lexical declaration' error when i try to access this page but it works fine when i comment pouch db statements. import { Component, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import…
-1
votes
1 answer

Why is the time stamp not used for conflict resolution?

The docs state that the "winner" is chosen in an arbitrary and consistent fashion. Why is the "later" revision not always chosen? I am sure that the timestamp is present in the payload.
sureshvv
  • 4,234
  • 1
  • 26
  • 32
-1
votes
1 answer

Invalid Version TypeError when using nw-gyp to build the leveldown module for Windows PouchDB

I actually found the answer to this question already, and just want to document my finding. First of all, this problem is not specific to building the leveldown module for Windows PouchDB. From what I have read online, it is a fairly common…
toyssamurai
  • 561
  • 4
  • 13
-1
votes
1 answer

Trying to use pouchDB, saying that it's not defined when i think it is

i'm trying to add pouchdb to my pwa to store some things when offline so i can post them later. I first register my Service Worker from app.js, and from it i ImportScript two other files with the logic of the sw. One of those files is where i put…
Julian
  • 9
  • 2
-1
votes
1 answer

Cannot set property of undefined with PouchDb when calling a function

I'd like to return values with the find module with PouchDb I can't return values with the find function and PouchDb If i call the function 'loadLists' i have this error : TypeError: Cannot set property 'lists' of undefined public…
luden
  • 103
  • 1
  • 4
1 2 3
99
100