SqlColumn

object SqlColumn
Companion:
class
Source:
SqlMapping.scala
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

Source:
SqlMapping.scala
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.

Source:
SqlMapping.scala
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.

Source:
SqlMapping.scala
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.

Source:
SqlMapping.scala
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

Source:
SqlMapping.scala
case class SubqueryColumn(col: SqlColumn, subquery: SqlSelect) extends SqlColumn

Representation of a scalar subquery

Representation of a scalar subquery

Source:
SqlMapping.scala
case class TableColumn(owner: ColumnOwner, cr: ColumnRef, resultPath: Option[List[String]]) extends SqlColumn

Representation of a column of a table/view

Representation of a column of a table/view

Companion:
object
Source:
SqlMapping.scala
Companion:
class
Source:
SqlMapping.scala

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