Expr

io.eezo.db.Expr
See theExpr companion object
enum Expr[T]

A predicate over T, as the small closed ADT BACKLOG §7 asks for. DESIGN §9.2.

Values never reach the SQL string: each becomes a ? and a Bind that goes through the same Column[A] the macro summoned for encode. Injection is not defended against here, it is unrepresentable.

Attributes

Companion
object
Source
Expr.scala
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

final case class All[T]()

The empty predicate. Expr.and treats it as the identity, so chaining .where does not accumulate true and ....

The empty predicate. Expr.and treats it as the identity, so chaining .where does not accumulate true and ....

Attributes

Source
Expr.scala
final case class And[T](l: Expr[T], r: Expr[T])

Attributes

Source
Expr.scala
final case class Cmp[T](col: String, op: String, bind: Bind)

Attributes

Source
Expr.scala
final case class In[T](col: String, binds: List[Bind])

Attributes

Source
Expr.scala
final case class Not[T](e: Expr[T])

Attributes

Source
Expr.scala
final case class Or[T](l: Expr[T], r: Expr[T])

Attributes

Source
Expr.scala