SelectStmt constructor

SelectStmt({
  1. required List<SelectItem> projection,
  2. String? fromTable,
  3. SelectStmt? fromSubquery,
  4. String? fromAlias,
  5. List<JoinClause> joins = const [],
  6. Expr? where,
  7. List<Expr> groupBy = const [],
  8. Expr? having,
  9. List<OrderByItem> orderBy = const [],
  10. int? limit,
  11. int? offset,
  12. bool distinct = false,
  13. String? setOp,
  14. SelectStmt? setOpRight,
  15. Map<String, SelectStmt> ctes = const {},
  16. Map<String, List<String>> cteColumns = const {},
  17. bool ctesRecursive = false,
  18. Map<String, bool> cteMaterialized = const {},
  19. FunctionCallExpr? fromFunction,
  20. Map<String, WindowSpec> namedWindows = const {},
  21. IndexHint? indexedBy,
  22. List<List<Expr>>? groupingSets,
})

Implementation

SelectStmt({
  required this.projection,
  this.fromTable,
  this.fromSubquery,
  this.fromAlias,
  this.joins = const [],
  this.where,
  this.groupBy = const [],
  this.having,
  this.orderBy = const [],
  this.limit,
  this.offset,
  this.distinct = false,
  this.setOp,
  this.setOpRight,
  this.ctes = const {},
  this.cteColumns = const {},
  this.ctesRecursive = false,
  this.cteMaterialized = const {},
  this.fromFunction,
  this.namedWindows = const {},
  this.indexedBy,
  this.groupingSets,
});