1.2.1 • Published 9 years ago

pouchdb-asyncstorage-down v1.2.1

Weekly downloads
11
License
MIT
Repository
github
Last release
9 years ago

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

1.2.1

9 years ago

1.2.0

9 years ago

1.1.9

9 years ago

1.1.8

9 years ago

1.1.7

9 years ago

1.1.6

9 years ago

1.1.5

9 years ago

1.1.4

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.9.1

10 years ago

0.9.0

10 years ago

0.4.0

10 years ago

0.3.8

10 years ago

0.3.7

10 years ago

0.3.6

10 years ago

0.3.4

10 years ago

0.3.3

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.0

10 years ago

0.1.0

10 years ago