update method
Implementation
Future<Response> update(table,
{required Map<String, dynamic>? data, required List? where}) async {
var db;
if (_database == 'postgre') {
db = await Postgre().update(connection, table, data: data, where: where);
} else if (_database == 'mysql') {
final connection = await MySQLConnection.createConnection(
host: _host,
port: _port,
userName: _username,
password: _password,
databaseName: _db, // optional
);
await connection.connect();
db = await MySql().update(connection, table, data: data, where: where);
} else {}
return db;
}