Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add silent option for rethinkdbdash package #28

Merged
merged 1 commit into from
Mar 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ function validateOptions (options) {
username: Joi.string().description('Rethinkdb username'),
password: Joi.string().description('Rethinkdb password'),
authKey: Joi.string().description('Rethinkdb authkey'),
silent: Joi.boolean().default(false).description('Suppress logs'),
discovery: Joi.any().when('driver', { is: 'rethinkdb', then: Joi.any().forbidden(), otherwise: Joi.boolean() })
.description('Whether or not the driver should try to keep a list of updated hosts'),
pool: Joi.any().when('driver', { is: 'rethinkdb', then: Joi.any().forbidden(), otherwise: Joi.boolean().default(false) })
Expand Down Expand Up @@ -121,7 +122,7 @@ function selectDriver (options) {
if (options.driver === 'rethinkdb') {
return require('rethinkdb')
}
return require('rethinkdbdash')(Mask(options, 'db,user,host,port,username,password,authKey,discovery,pool,cursor,servers,ssl'))
return require('rethinkdbdash')(Mask(options, 'db,user,host,port,username,password,authKey,silent,discovery,pool,cursor,servers,ssl'))
}

function createDbIfInexistent (options) {
Expand Down