connection method

Future<StanzaConnection> connection ()

Provides a databse connection using the Stanza instance's pooled connections.

Implementation

Future<StanzaConnection> connection() async {
  var connection = pg.PostgreSQLConnection(
      _creds.host, _creds.port, _creds.db,
      username: _creds.username, password: _creds.password);
  return StanzaConnection(_pool, connection);
}