queryAnyBy method

Future<Row?> queryAnyBy(
  1. Iterable<String>? fields,
  2. String fromClause,
  3. Map<String, dynamic> whereValues, [
  4. AccessOption? option,
])

Queries fields of fromClause for the criteria specified in whereValues (AND-ed together), and returns only the first row, or null if nothing found.

Refer to queryBy for details.

Implementation

Future<Row?> queryAnyBy(Iterable<String>? fields, String fromClause,
    Map<String, dynamic> whereValues, [AccessOption? option])
=> StreamUtil.first(_queryBy(fields, fromClause, whereValues, option, "limit 1"));