rethinkdb-假连接帮助承诺连接到rethinkdb数据库的模块。安装此模块没有npm包,请手动使用package.json npm install --save YChebotaev/rethinkdb-fake-connection用法var r = require ( 'rethinkdb' ) ; require ( 'rethinkdb-fake-connection' ) . patch ( r ) ; var fakeConnection = r . connect ( ) ; r . dbList ( ) . run ( fakeConnection , function ( err , dbList ) { console . log ( err , dbList ) ; // null, ["test"] } ) ;假连接#then