SqlQuery

sealed
trait SqlQuery extends ColumnOwner

Representation of a SQL query in a context

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
class SqlSelect
class SqlUnion

Value members

Abstract methods

def addFilterOrderByOffsetLimit(filter: Option[(Predicate, List[SqlJoin])], orderBy: Option[(List[OrderSelection[_]], List[SqlJoin])], offset: Option[Int], limit: Option[Int], predIsOneToOne: Boolean, parentConstraints: List[(SqlColumn, SqlColumn)]): Option[SqlQuery]

Add WHERE, ORDER BY, OFFSET and LIMIT to this query

Add WHERE, ORDER BY, OFFSET and LIMIT to this query

def codecs: List[(Boolean, Codec)]

The codecs corresponding to the columns of this query

The codecs corresponding to the columns of this query

def cols: List[SqlColumn]

The columns of this query

The columns of this query

def context: Context

The context for this query

The context for this query

def isUnion: Boolean

Is this query an SQL Union

Is this query an SQL Union

def nest(parentContext: Context, extraCols: List[SqlColumn], oneToOne: Boolean, lateral: Boolean): SqlQuery

Nest this query as a subobject in the enclosing parentContext

Nest this query as a subobject in the enclosing parentContext

def oneToOne: Boolean

Does one row of this query correspond to exactly one complete GraphQL value

Does one row of this query correspond to exactly one complete GraphQL value

Yields a copy of this query with all occurences of from replaced by to

Yields a copy of this query with all occurences of from replaced by to

Render this query as a Fragment

Render this query as a Fragment

def toSubquery(name: String, lateral: Boolean): SqlSelect

Yields an equivalent query encapsulating this query as a subquery

Yields an equivalent query encapsulating this query as a subquery

def toWithQuery(name: String, refName: Option[String]): SqlSelect

Yields an equivalent query encapsulating this query as a common table expression

Yields an equivalent query encapsulating this query as a common table expression

def withContext(context: Context, extraCols: List[SqlColumn], extraJoins: List[SqlJoin]): SqlQuery

This query in the given context

This query in the given context

Concrete methods

def asSelects: List[SqlSelect]

Yields a collection of SqlSelects which when combined as a union are equivalent to this query

Yields a collection of SqlSelects which when combined as a union are equivalent to this query

Inherited methods

def canEqual(that: Any): Boolean
Inherited from
Equals
def contains(other: ColumnOwner): Boolean
Inherited from
ColumnOwner
def debugShow: String
Inherited from
ColumnOwner
def directlyOwns(col: SqlColumn): Boolean
Inherited from
ColumnOwner
Inherited from
ColumnOwner
def isSameOwner(other: ColumnOwner): Boolean
Inherited from
ColumnOwner
def nameOption: Option[String]

The name, if any, of this ColumnOwner

The name, if any, of this ColumnOwner

Inherited from
ColumnOwner
def owns(col: SqlColumn): Boolean
Inherited from
ColumnOwner
def productArity: Int
Inherited from
Product
def productElement(n: Int): Any
Inherited from
Product
def productElementName(n: Int): String
Inherited from
Product
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def productPrefix: String
Inherited from
Product