SelectStmt constructor

SelectStmt({
  1. bool distinct = false,
  2. required List<SelectColumn> columns,
  3. required String table,
  4. JoinSpec? join,
  5. List<JoinSpec>? joins,
  6. Expr? where,
  7. List<Expr> groupBy = const [],
  8. Expr? having,
  9. List<OrderByClause> orderBy = const [],
  10. int? limit,
  11. int? offset,
})

Implementation

SelectStmt({
  this.distinct = false,
  required this.columns,
  required this.table,
  this.join,
  List<JoinSpec>? joins,
  this.where,
  this.groupBy = const [],
  this.having,
  this.orderBy = const [],
  this.limit,
  this.offset,
}) : joins = joins ?? (join != null ? [join] : const []);