Grial datasource connector for RethinkDB.
- RETHINK_HOST => the host to connect to (default:
localhost
) - RETHINK_PORT => the port to connect on (default:
28015
) - RETHINK_DB => the default database (default:
test
) - RETHINK_USER => he user account to connect as (default:
admin
) - RETHINK_PASS => the password for the user account to connect as (default:
''
)
Install it
npm i @grial/connector-rethinkdb
Add it to your connectors.js
files
exports.rethinkdb = require('@grial/connector-rethinkdb')
You can customize the configuration object using grial.config.js
with the following object.
module.exports = {
connectors: {
rethinkdb({ config, env }) {
return newConfig
}
}
}
env
-> the enviroment variablesconfig
-> the base config
It use the rethinkdb
package and it return a connection instance.