org.easysql.dsl
package org.easysql.dsl
Members list
Concise view
Type members
Classlikes
case class AggFunctionExpr[T <: SqlDataType](name: String, args: List[Expr[_]], distinct: Boolean, attributes: Map[String, Expr[_]], orderBy: List[OrderBy]) extends Expr[T]
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[T]trait SelectItem[T]class Objecttrait Matchableclass Any
case class AliasExpr[T <: SqlDataType, Alias <: String](expr: Expr[T], name: Alias) extends SelectItem[T]
Attributes
- Graph
- Supertypes
object AllColumn
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- AllColumn.type
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[Nothing]trait SelectItem[Nothing]class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- class JoinTableSchematrait TableSchema[E]
case class BetweenExpr[T <: SqlDataType](query: Expr[_], start: T | Expr[_] | SelectQuery[_, _], end: T | Expr[_] | SelectQuery[_, _], isNot: Boolean) extends Expr[Boolean]
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[Boolean]trait SelectItem[Boolean]class Objecttrait Matchableclass Any
case class BinaryExpr[T <: SqlDataType](left: Expr[_], operator: SqlBinaryOperator, right: Expr[_]) extends Expr[T]
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[T]trait SelectItem[T]class Objecttrait Matchableclass Any
case class CaseBranch[T <: SqlDataType](query: Expr[_], thenValue: T | Expr[T] | SelectQuery[(T), _])
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
case class CaseExpr[T <: SqlDataType](conditions: List[CaseBranch[T]], var default: T | Expr[T] | SelectQuery[(T), _]) extends Expr[T]
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[T]trait SelectItem[T]class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[T]trait SelectItem[T]class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[T]trait SelectItem[T]class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[T]trait SelectItem[T]class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- Known subtypes
- class AggFunctionExpr[T]class AllColumnExprclass BetweenExpr[T]class BinaryExpr[T]class CaseExpr[T]class CastExpr[T]class ColumnExpr[T]class ConstExpr[T]class InListExpr[T]class InSubQueryExpr[T]class ListExpr[T]class NormalFunctionExpr[T]class OverExpr[T]class PrimaryKeyColumnExpr[T]class SubQueryExpr[T]class SubQueryPredicateExpr[T]class TableColumnExpr[T]
case class InListExpr[T <: SqlDataType](query: Expr[_], list: List[T | Expr[_] | SelectQuery[_, _]], isNot: Boolean) extends Expr[Boolean]
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[Boolean]trait SelectItem[Boolean]class Objecttrait Matchableclass Any
case class InSubQueryExpr[T <: SqlDataType](query: Expr[T], subQuery: SelectQuery[_, _], isNot: Boolean) extends Expr[Boolean]
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[Boolean]trait SelectItem[Boolean]class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
case class JoinTableSchema(left: AnyTable, joinType: SqlJoinType, right: AnyTable, var onCondition: Option[Expr[_]]) extends AnyTable
Attributes
- Graph
- Supertypes
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[T]trait SelectItem[T]class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[T]trait SelectItem[T]class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
case class OverExpr[T <: SqlDataType](function: AggFunctionExpr[_], partitionBy: ListBuffer[Expr[_]], orderBy: ListBuffer[OrderBy]) extends Expr[T]
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[T]trait SelectItem[T]class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
case class PrimaryKeyColumnExpr[T <: SqlDataType](table: String, column: String, schema: TableSchema[_], var isIncr: Boolean) extends Expr[T]
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[T]trait SelectItem[T]class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
- trait Expr[T]class AggFunctionExpr[T]class AllColumnExprclass BetweenExpr[T]class BinaryExpr[T]class CaseExpr[T]class CastExpr[T]class ColumnExpr[T]class ConstExpr[T]class InListExpr[T]class InSubQueryExpr[T]class ListExpr[T]class NormalFunctionExpr[T]class OverExpr[T]class PrimaryKeyColumnExpr[T]class SubQueryExpr[T]class SubQueryPredicateExpr[T]class TableColumnExpr[T]trait TableSchema[E]
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[T]trait SelectItem[T]class Objecttrait Matchableclass Any
case class SubQueryPredicateExpr[T <: SqlDataType](query: SelectQuery[_, _], predicate: SqlSubQueryPredicate) extends Expr[T]
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[T]trait SelectItem[T]class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait StaticAnnotationclass Annotationclass Objecttrait Matchableclass Any
case class TableColumnExpr[T <: SqlDataType](table: String, column: String, schema: TableSchema[_]) extends Expr[T]
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalstrait Expr[T]trait SelectItem[T]class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
Types
type ElementType[T <: Tuple, N <: Tuple, Name <: String] = (T, N) match {
case (t *: tt, n *: nt) => n == Name match {
case true => t match {
case SqlNumberType => Number
case SqlDataType => t
case Option[o] => o match {
case SqlNumberType => Number
case SqlDataType => o
}
}
case false => ElementType[tt, nt, Name]
}
case (EmptyTuple, EmptyTuple) => Nothing
}
type ExtractAliasNames[T <: Tuple] = T match {
case AliasExpr[_$11, n] *: t => n *: ExtractAliasNames[t]
case Any => EmptyTuple
}
type FindTypeByName[T <: Tuple, I <: Int, Name <: String] = I >= 0 match {
case true => Elem[T, I] match {
case (t, n) => n == Name match {
case true => t
case false => FindTypeByName[T, I - 1, Name]
}
case Any => Nothing
}
case false => Nothing
}
type InverseMap[X <: Tuple] = X match {
case SelectItem[x] *: t => x *: InverseMap[t]
case EmptyTuple => EmptyTuple
}
type QueryType[T <: Tuple | Expr[_] | TableSchema[_]] = T match {
case h *: t => h *: t
case Any => (T)
}
type RecursiveInverseMap[X <: Tuple] = X match {
case x *: t => x match {
case Tuple => Concat[RecursiveInverseMap[x], RecursiveInverseMap[t]]
case SelectItem[y] => y *: RecursiveInverseMap[t]
}
case EmptyTuple => EmptyTuple
}
type UnionTo[A, B] = A match {
case B => B
case SqlNumberType => B match {
case SqlNumberType => Number
}
case Any => B match {
case A => A
}
}
Value members
Concrete methods
Givens
Givens
Extensions
Extensions
extension [T <: SqlDataType](e: TableColumnExpr[T] | ColumnExpr[T])
def to[V <: T](value: V | Expr[V] | SelectQuery[(V), _]): (TableColumnExpr[T] | ColumnExpr[T], V | Expr[V] | SelectQuery[(V), _])
extension (s: StringContext)
extension [E <: Product, T <: TableSchema[E]](t: T)