connect method

  1. @override
Future<void> connect()
override

Implementation

@override
Future<void> connect() async {
  _connection = await MySQLConnection.createConnection(
    host: config.host,
    port: config.port,
    userName: config.username,
    password: config.password,
    databaseName: config.database,
  );
  await _connection.connect();
}