thinky
thinky copied to clipboard
support connection url strings
Example: rethinkdb://user:pass@host:port?option=v
Most other access tools support this pattern (and most PaaS providers give info this way)
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 compose.io (and heroku compose) provides credentials in this way via an env var
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?