deleteAll method
Implementation
Future<Response> deleteAll(table) async {
var db;
if (_database == 'postgre') {
db = await Postgre().deleteAll(connection, table);
} 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().deleteAll(connection, table);
} else {}
return db;
}