SqlQuery

edu.gemini.grackle.sql.SqlMappingLike.SqlQuery$
See theSqlQuery companion trait
object SqlQuery

Attributes

Companion:
trait
Source:
SqlMapping.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Concise view

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

Attributes

Companion:
object
Source:
SqlMapping.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object SqlJoin

Attributes

Companion:
class
Source:
SqlMapping.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
SqlJoin.type
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

Attributes

Companion:
object
Source:
SqlMapping.scala
Graph
Supertypes
trait SqlQuery
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object SqlSelect

Attributes

Companion:
class
Source:
SqlMapping.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class SqlUnion(elems: List[SqlSelect]) extends SqlQuery

Representation of a UNION ALL of SQL SELECTs

Representation of a UNION ALL of SQL SELECTs

Attributes

Companion:
object
Source:
SqlMapping.scala
Graph
Supertypes
trait SqlQuery
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
object SqlUnion

Attributes

Companion:
class
Source:
SqlMapping.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source:
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source:
Mirror.scala

Value members

Concrete methods

Combine the given queries as a single SQL query

Combine the given queries as a single SQL query

Attributes

Source:
SqlMapping.scala

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

Attributes

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

Attributes

Source:
SqlMapping.scala

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

Attributes

Source:
SqlMapping.scala
def embedColumn(table: TableExpr, parentTable: TableRef, col: SqlColumn): SqlColumn

Attributes

Source:
SqlMapping.scala
def embedOrderTerms[T](table: TableExpr, parentTable: TableRef, os: OrderSelection[T]): OrderSelection[T]

Attributes

Source:
SqlMapping.scala
def embedTerm(table: TableExpr, parentTable: TableRef, term: Term[_]): SqlColumn

Attributes

Source:
SqlMapping.scala
def embedWhereTerms(table: TableExpr, parentTable: TableRef, pred: Predicate): Predicate

Embed all terms in the given Predicate in the given table and parent table

Embed all terms in the given Predicate in the given table and parent table

Attributes

Source:
SqlMapping.scala
def isEmbeddedIn(inner: Context, outer: Context): Boolean

Attributes

Source:
SqlMapping.scala

Render the given OrderSelections as a Fragment

Render the given OrderSelections as a Fragment

Attributes

Source:
SqlMapping.scala

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

Attributes

Source:
SqlMapping.scala

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

Attributes

Source:
SqlMapping.scala

Compute the set of columns referred to by the given prediate

Compute the set of columns referred to by the given prediate

Attributes

Source:
SqlMapping.scala

Compute the set of paths traversed by the given prediate

Compute the set of paths traversed by the given prediate

Attributes

Source:
SqlMapping.scala

Render the given Predicates as a where clause Fragment

Render the given Predicates as a where clause Fragment

Attributes

Source:
SqlMapping.scala