UNPKG

reshine

Version:

Let's take the sunshine path with RethinkDB

11 lines (8 loc) 232 B
import r from 'rethinkdb'; export default dbName => connection => r.dbList().run(connection).then(list => { if (list.indexOf(dbName) >= 0) { return Promise.resolve(true); } return Promise.resolve(false); });