thinky icon indicating copy to clipboard operation
thinky copied to clipboard

support connection url strings

Open yocontra opened this issue 8 years ago • 3 comments

Example: rethinkdb://user:pass@host:port?option=v

Most other access tools support this pattern (and most PaaS providers give info this way)

yocontra avatar Jan 16 '16 03:01 yocontra

What PaaS provide you a RethinkDB url like that?

It's more something to put in rethinkdbdash or in the official driver I guess. cc/ @danielmewes

neumino avatar Jan 16 '16 19:01 neumino

@neumino compose.io (and heroku compose) provides credentials in this way via an env var

yocontra avatar Jan 17 '16 03:01 yocontra

I'm on Heroku, and at the moment I use parse-rethinkdb-url NPM package as a solution:

const parseRethinkdbUrl = require('parse-rethinkdb-url')
const thinky = require('thinky')(parseRethinkdbUrl(process.env.RETHINKDB_URI))

Probably worth mentioning in docs / examples?

vovayartsev avatar Sep 28 '17 10:09 vovayartsev