SqlQuery

object SqlQuery
Companion:
class
trait Sum
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

case class SqlJoin(parent: TableExpr, child: TableExpr, on: List[(SqlColumn, SqlColumn)], inner: Boolean) extends ColumnOwner

Representation of an SQL join

Representation of an SQL join

Companion:
object
object SqlJoin
Companion:
class
case class SqlSelect(context: Context, withs: List[WithRef], table: TableExpr, cols: List[SqlColumn], joins: List[SqlJoin], wheres: List[Predicate], orders: List[OrderSelection[_]], offset: Option[Int], limit: Option[Int], distinct: List[SqlColumn], oneToOne: Boolean, predicate: Boolean) extends SqlQuery

Representation of an SQL SELECT

Representation of an SQL SELECT

Companion:
object
object SqlSelect
Companion:
class
case class SqlUnion(elems: List[SqlSelect]) extends SqlQuery

Representation of a UNION ALL of SQL SELECTs

Representation of a UNION ALL of SQL SELECTs

Companion:
object
object SqlUnion
Companion:
class

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

Combine the given queries as a single SQL query

Combine the given queries as a single SQL query

Contextualise all terms in the given OrderSelection to the given context and owner

Contextualise all terms in the given OrderSelection to the given context and owner

def contextualiseTerm(context: Context, owner: ColumnOwner, term: Term[_]): SqlColumn

Yield a copy of the given Term with all referenced SqlColumns relativised to the given context and owned by by the given owner

Yield a copy of the given Term with all referenced SqlColumns relativised to the given context and owned by by the given owner

Contextualise all terms in the given Predicate to the given context and owner

Contextualise all terms in the given Predicate to the given context and owner

Render the given OrderSelections as a Fragment

Render the given OrderSelections as a Fragment

Yields a copy of the given OrderSelection with all occurences of from replaced by to

Yields a copy of the given OrderSelection with all occurences of from replaced by to

Yields a copy of the given Predicate with all occurences of from replaced by to

Yields a copy of the given Predicate with all occurences of from replaced by to

Compute the set of columns referred to by the given prediate

Compute the set of columns referred to by the given prediate

Compute the set of paths traversed by the given prediate

Compute the set of paths traversed by the given prediate

Render the given Predicates as a where clause Fragment

Render the given Predicates as a where clause Fragment