close method

Future close()

Closes all active database connections.

Implementation

Future close() => Future.wait(_connections.map<Future>((c) => c.close()))
    .then((_) => _pool.close());