Rel

zio.blocks.sql.query.Rel
See theRel companion class
object Rel

Attributes

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

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

def manyToOne[From, To](fromTable: Table[From], fkColumn: String, toTable: Table[To], pkColumn: String): Rel[From, To]

String-based constructor for reflective/dynamic tables.

String-based constructor for reflective/dynamic tables.

Attributes

Source
Rel.scala
transparent inline def manyToOne[From, To](inline fromTable: Table[From], inline fkSelector: From => Any, inline toTable: Table[To], inline pkSelector: To => Any): Rel[From, To]

Attributes

Source
Rel.scala
def oneToMany[From, To](fromTable: Table[From], fkColumn: String, toTable: Table[To], pkColumn: String): Rel[From, To]

String-based constructor symmetric to manyToOne.

String-based constructor symmetric to manyToOne.

Attributes

Source
Rel.scala
transparent inline def oneToMany[From, To](inline fromTable: Table[From], inline fkSelector: From => Any, inline toTable: Table[To], inline pkSelector: To => Any): Rel[From, To]

Attributes

Source
Rel.scala