UNPKG

reshine

Version:

Let's take the sunshine path with RethinkDB

12 lines (9 loc) 265 B
import r from 'rethinkdb'; export default tableName => dbName => connection => r.db(dbName).tableList().run(connection) .then(list => { if (list.indexOf(tableName) >= 0) { return Promise.resolve(true); } return Promise.resolve(false); });