3

I'm interested in using PouchDB for a offline-first mobile application (Cordova) and I'm wondering if there is any leightweight ORM/ODM for PouchDB written in JavaScript. Couldn't find one.

Is PouchDB the most common way to implement "offlinability" in JavaScript? Or are there other better ways to do that (without going native).

1

2 Answers 2

1

Another one is https://github.com/iyobo/pouchorm, claiming to be 'The definitive ORM for working with PouchDB. Native support for Typescript.'

At the time of writing it appears to be still actively developed.

I did some research and consider PouchDB and RxDB the two most feasible options if you go for open source and want to avoid larger costs for the servers. There still is CouchBase which provides libraries for many languages.

Sign up to request clarification or add additional context in comments.

1 Comment

Do you mean PouchORM and RxDB?
1

PouchORM (https://github.com/iyobo/pouchorm) is a solid option.

It's light weight and yet super-functional. It has all the features I would care for when using pouchdb; namely it's simplicity, data validation and it's cool use of separating data across a single DB using collections.

The collections are also indexed by their type so this does not affect speed.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.