exec method

Future<List<List>> exec()

this method to execute current query and get results as List

Implementation

Future<List<List>> exec() async {
  if (!currentQuery.isQuery()) {
    throw Exception('Is nessesary query');
  }

  final rows = await executor.query(
    currentQuery.toSql(),
    currentQuery.buildSubstitutionValues(),
    currentQuery.buildReturningFields(),
  );
  return rows;
}