pouchdb with riak

24 views
Skip to first unread message

er...@dialsporatel.com

unread,
Dec 23, 2016, 6:20:24 PM12/23/16
to PouchDB
Hi all

Tried creating an express Pouchdb server on Pouchdb 6.1.0 which raises an error. Checked the docs, it is not clear how to instantiate riak from express-pouchdb. 

var RiakPouchDB = PouchDB.defaults({db: require('riakdown'), prefix: 'riak://localhost:8087/'});

/db_server/node_modules/pouchdb/lib/index.js:2693
23:06:14 gulp.1 |     throw new Error('Invalid Adapter: ' + opts.adapter);
23:06:14 gulp.1 |     ^
23:06:14 gulp.1 |
23:06:14 gulp.1 | Error: Invalid Adapter: riak
23:06:14 gulp.1 |     at PouchAlt.PouchDB (/db_server/node_modules/pouchdb/lib/index.js:2693:11)
23:06:14 gulp.1 |     at new PouchAlt (/db_server/node_modules/pouchdb/lib/index.js:2781:13)
23:06:14 gulp.1 |     at Object.<anonymous> (/db_server/db.js:10:10)
23:06:14 gulp.1 |     at Module._compile (module.js:570:32)
23:06:14 gulp.1 |     at Object.Module._extensions..js (module.js:579:10)
23:06:14 gulp.1 |     at Module.load (module.js:487:32)
23:06:14 gulp.1 |     at tryModuleLoad (module.js:446:12)
23:06:14 gulp.1 |     at Function.Module._load (module.js:438:3)
23:06:14 gulp.1 |     at Module.runMain (module.js:604:10)
23:06:14 gulp.1 |     at run (bootstrap_node.js:394:7)
23:06:14 gulp.1 | exited with code 0
23:06:14 system | sending SIGTERM to all processes

Eric 
 

Jan Lehnardt

unread,
Dec 30, 2016, 5:34:50 AM12/30/16
to pou...@googlegroups.com
Sorry for not being a direct answer, but CouchDB 2.0 has most of the benefits that you’d get from a Riak backend for pouchdb-express, if that’s what you are looking for (Dynamo-style clustering to be exact).

However, that might not be what you are looking for. FWIW, I don’t think the Riak adapter for pouchdb-express ever got out of a proof-of-concept phase and is not used in production (anyone correct me if I’m wrong :) It might just be that it didn’t keep up with this year’s PouchDB refactorings, and nobody needed it until now.

Best
Jan
--



--
You received this message because you are subscribed to the Google Groups "PouchDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pouchdb+u...@googlegroups.com.
To post to this group, send email to pou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pouchdb/c848ce38-bdb7-473a-aad4-a2320243088f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages