neumino / thinky

JavaScript ORM for RethinkDB
http://justonepixel.com/thinky/
Other
1.12k stars 128 forks source link

How to close connection #627

Closed nodesocket closed 7 years ago

nodesocket commented 7 years ago

I must be missing it, but how can I close an established thinky connection?

const Orm = require('thinky')(config);

Don't see a close() on Orm or Orm.r.

neumino commented 7 years ago

You don't handle connections with thinky. Rethinkdbdash does it under the hood.

If you want to close all the connections, thinky.r.getPoolMaster().drain() is what you want.