selMany method

Find selMany(
  1. Iterable<String> columns, {
  2. String? table,
})

Selects many columns to be fetched in the given table. Use alias to alias the column name.

Implementation

Find selMany(Iterable<String> columns, {String? table}) {
  if (table == null) {
    for (String columnName in columns) {
      final String name = columnName;
      _column.add(SelColumn(name));
    }
  } else {
    for (String columnName in columns) {
      final String name = table + '.' + columnName;
      _column.add(SelColumn(name));
    }
  }
  return this;
}