SqlUnion

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

Representation of a UNION ALL of SQL SELECTs

Companion
object
trait SqlQuery
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete 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)]
def contains(other: ColumnOwner): Boolean
def directlyOwns(col: SqlColumn): Boolean
override
def isSameOwner(other: ColumnOwner): Boolean
Definition Classes
def isUnion: Boolean
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

def owns(col: SqlColumn): Boolean

Render this SqlUnion as a Fragment

Render this SqlUnion as a Fragment

def toSubquery(name: String, lateral: Boolean): SqlSelect
def toWithQuery(name: String, refName: Option[String]): SqlSelect
def withContext(context: Context, extraCols: List[SqlColumn], extraJoins: List[SqlJoin]): SqlUnion

This query in the given context

This query in the given context

Inherited 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 from
SqlQuery
def debugShow: String
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 productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product

Concrete fields

lazy
val cols: List[SqlColumn]

The union of the columns of the underlying SELECTs in the order they will be yielded as the columns of this UNION

The union of the columns of the underlying SELECTs in the order they will be yielded as the columns of this UNION

val context: Context

The context for this query

The context for this query