firstOrFail method

Future<TRow> firstOrFail()

The first matching row, or MssqlRowNotFoundException.

Implementation

Future<TRow> firstOrFail() async {
  final row = await first();
  if (row == null) {
    throw MssqlRowNotFoundException(binding.qualifiedName, null);
  }
  return row;
}