exec method
Executes a query
Returns an IResultSet in case of MySQL
and Returns Result in case of PostgreSQL
iterable
is only usable for MySQL
Implementation
Future<dynamic> exec(
String query, [
Map<String, dynamic>? args,
bool? iterable = false,
]) async {
if (type.asString == "mysql") {
return await conn!.execute('SELECT * FROM users', args, iterable!);
} else if (type.asString == "postgres") {
return await conn2!.execute(query, parameters: args);
}
}