selectMax static method

Future<Object?> selectMax(
  1. DatabaseExecutor db,
  2. String tableName,
  3. String column, {
  4. String? where,
  5. List<Object?>? whereArgs,
})

Select Max of column value

Implementation

static Future<Object?> selectMax(DatabaseExecutor db, String tableName, String column,
    {String? where, List<Object?>? whereArgs}) async {
  return await select(db, tableName, ["MAX($column)"], where: where, whereArgs: whereArgs, isUnique: true);
}