SqlColumn

object SqlColumn
Companion:
class
class Object
trait Matchable
class Any

Type members

Classlikes

case class CountColumn(col: SqlColumn, cols: List[SqlColumn]) extends SqlColumn

Representation of COUNT aggregation

Representation of COUNT aggregation

case class DerivedColumn(owner: ColumnOwner, col: SqlColumn) extends SqlColumn

Representation of a derived column

Representation of a derived column

Used to represent columns on the outside of subqueries and common table expressions. Note that column aliases are tracked across derivation so that derived columns will continue to refer to the same underlying data irrespective of renaming.

case class EmbeddedColumn(owner: ColumnOwner, col: SqlColumn) extends SqlColumn

Representation of a column of an embedded subobject

Representation of a column of an embedded subobject

Columns of embedded subobjects have a different context path from columns of their enclosing object, however they resolve to columns of the same SqlSelect. To satisfy the SqlSelect invariant that all its columns must share the same context path we have to wrap the embedded column so that its context path conforms.

case class NullColumn(owner: ColumnOwner, col: SqlColumn) extends SqlColumn

Representation of a synthetic null column

Representation of a synthetic null column

Primarily used to pad the disjuncts of an SqlUnion.

case class PartitionColumn(owner: ColumnOwner, column: String, partitionCols: List[SqlColumn], orders: List[OrderSelection[_]]) extends SqlColumn

Representation of a window aggregation

Representation of a window aggregation

case class SubqueryColumn(col: SqlColumn, subquery: SqlSelect) extends SqlColumn

Representation of a scalar subquery

Representation of a scalar subquery

case class TableColumn(owner: ColumnOwner, cr: ColumnRef) extends SqlColumn

Representation of a column of a table/view

Representation of a column of a table/view

Companion:
object
Companion:
class

Value members

Concrete methods

def mkDefFragment(prefix: Option[String], base: String, collated: Boolean, alias: String): Fragment
def mkDefFragment(base: Fragment, collated: Boolean, alias: String): Fragment
def mkRefFragment(prefix: Option[String], alias: String, collated: Boolean): Fragment