Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save analytik/cec799e33aed1f5addb19033642355dd to your computer and use it in GitHub Desktop.

Select an option

Save analytik/cec799e33aed1f5addb19033642355dd to your computer and use it in GitHub Desktop.
r.db('rethinkdb').table('table_status')
.filter(r.row('status')('ready_for_writes').not())
.forEach((tbl)=>{
return r.db(tbl('db')).table(tbl('name')).reconfigure({emergency_repair: 'unsafe_rollback'});
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment