createConnection method

  1. @override
FutureOr<DBMySqlConnectionWrapper> createConnection()
override

Creates a connection C for this adapte

Implementation

@override
FutureOr<DBMySqlConnectionWrapper> createConnection() async {
  var password = await _getPassword();

  var count = ++_connectionCount;

  var connWrapper = await _createConnectionImpl(password);

  var connUrl = getConnectionURL(connWrapper);

  _log.info(
      'createConnection[#$count $poolAliveElementsSize/$maxConnections]> $connUrl > ${connWrapper.nativeConnection}');

  return connWrapper;
}