Join

ldbc.query.builder.statement.Join
See theJoin companion object
trait Join[F[_], JOINS <: Tuple, SELECTS <: Tuple]

Trait to build a Join.

Type parameters

F

The effect type

JOINS

Tuple type of TableQuery used to perform the Join.

SELECTS

Tuple type of TableQuery used to construct Select statements, etc.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Join[F, JOINS, SELECTS]

Members list

Value members

Abstract methods

def joinStatements: Seq[String]

Join's Statement List.

Join's Statement List.

Attributes

def joins: JOINS

Tuple of the table that did the join.

Tuple of the table that did the join.

Attributes

def main: TableQuery[F, _]

The table on which the Join is based.

The table on which the Join is based.

Attributes

def selects: SELECTS

Tuple for building Select statements, etc. on joined tables.

Tuple for building Select statements, etc. on joined tables.

Attributes

Concrete methods

def join[P <: Product](other: TableQuery[F, P])(on: Concat[JOINS, (TableQuery[F, P])] => ExpressionSyntax[F])(using IsTableQueryOpt[F, SELECTS] =:= true): Join[F, Concat[JOINS, (TableQuery[F, P])], Concat[SELECTS, (TableQuery[F, P])]]

A method to perform a simple Join.

A method to perform a simple Join.

Type parameters

P

Base trait for all products

Value parameters

on

Comparison function that performs a Join.

other

TableQuery to do a Join.

Attributes

def leftJoin[P <: Product](other: TableQuery[F, P])(on: Concat[JOINS, (TableQuery[F, P])] => ExpressionSyntax[F])(using IsTableQueryOpt[F, SELECTS] =:= true): Join[F, Concat[JOINS, (TableQuery[F, P])], Concat[SELECTS, (TableOpt[F, P])]]

Method to perform Left Join.

Method to perform Left Join.

Type parameters

P

Base trait for all products

Value parameters

on

Comparison function that performs a Join.

other

TableQuery to do a Join.

Attributes

def rightJoin[P <: Product](other: TableQuery[F, P])(on: Concat[JOINS, (TableQuery[F, P])] => ExpressionSyntax[F])(using IsTableQueryOpt[F, SELECTS] =:= true): Join[F, Concat[JOINS, (TableQuery[F, P])], Concat[ToTableOpt[F, SELECTS], (TableQuery[F, P])]]

Method to perform Right Join.

Method to perform Right Join.

Type parameters

P

Base trait for all products

Value parameters

on

Comparison function that performs a Join.

other

TableQuery to do a Join.

Attributes

def select[C](func: SELECTS => C)(using IsColumnQuery[F, C] =:= true): JoinSelect[F, SELECTS, C]
def statement: String

Statement of Join.

Statement of Join.

Attributes