This package has been deprecated

Author message:

because of changes in PouchDB stucture, this packages has been replaced by pouchdb-react-native and pouchdb-adapter-asyncstorage, see https://github.com/stockulus/pouchdb-react-native

pouchdb-asyncstorage-down

1.2.1 • Public • Published

deprecate

works just with PouchDB 5.3

*** New Version ***

with the new sub-packages in PouchDB 5.4.0 there is a new structure.

Adapter

https://github.com/stockulus/pouchdb-react-native/tree/master/packages/pouchdb-adapter-asyncstorage https://www.npmjs.com/package/pouchdb-adapter-asyncstorage

Bundle

https://github.com/stockulus/pouchdb-react-native/tree/master/packages/pouchdb-react-native https://www.npmjs.com/package/pouchdb-react-native

For details on PouchDB sub-packages, see the Custom Builds documentation.

*** Old Readme ***

pouchdb-asyncstorage-down

Adds an async storage Adapter to the PouchDB + Polifills core-js that PouchDB with leveldown Adapter is running with react-native

Usage

You should be able to just do:

npm install pouchdb-asyncstorage-down --save

Then require it after PouchDB:

const PouchDB = require('pouchdb')
require('pouchdb-asyncstorage-down')
 
const db = new PouchDB('mydb', {adapter: 'asyncstorage'})
 
// or import style
 
import PouchDB from 'pouchdb'
import 'pouchdb-asyncstorage-down'
 
const db = new PouchDB('mydb', {adapter: 'asyncstorage'})

Sample App

there is a small example app: https://github.com/stockulus/pouchdb-react-native/tree/master/example

Tests

Currently done manually by me, not sure how to easy simulate a running IOS / Android device

Currently working on getting tests running, but a little struggling in running react-native as node tests

Contact

Feedback welcome: Twitter: @stockulus

Package Sidebar

Install

npm i pouchdb-asyncstorage-down

Weekly Downloads

0

Version

1.2.1

License

MIT

Last publish

Collaborators

  • stockulus