connect method

Future<void> connect ()
override

Connects to the database

Implementation

Future<void> connect() async {
  if (_connection == null) {
    sj.ConnectionSettings connSettings = sj.ConnectionSettings(
        host: host,
        port: port,
        db: databaseName,
        user: username,
        password: password);
    _connection = await sj.MySqlConnection.connect(connSettings);
  }
  //if (_connection.isClosed) await connection.open();
}