Skip to content

Instantly share code, notes, and snippets.

@karlwestin
Created August 30, 2018 09:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karlwestin/de1c0d9ac56773de390fbaa46cdfab10 to your computer and use it in GitHub Desktop.
Save karlwestin/de1c0d9ac56773de390fbaa46cdfab10 to your computer and use it in GitHub Desktop.
How does PouchDB choose adapter?

How does PouchDB choose adapter:

Source is in pouchdb-core

is it http or https? - use these adapters

is it not? - pick the first one in the list of 'preferred adapters'

this means, if you're using PouchDB core + manually added adapters the order which you add them in makes a difference.

What is the 'PouchDB' full package?

Browser setup is here, and the Node setup is here

  • pouchdb core
  • indexed/level db adapter depending on browser or node
  • http adapter
  • mapreduce package
  • replication package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment