Query

org.easysql.query.select.Query
See theQuery companion object
class Query[T](val t: T, val s: Select[_, _])

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

def avg[N <: SqlNumberType](f: T => Expr[N]): Query[Expr[Number]]
def count: Query[Long]
inline def crossJoin[E <: Product](using m: ProductOf[E]): Query[Append[T, TableSchema[E]]]
def drop(n: Int): Query[T]
def exists: Query[Boolean]
def filter(f: T => Expr[Boolean]): Query[T]
def flatMap[R](f: T => Query[R]): Query[R]
inline def fullJoin[E <: Product](using m: ProductOf[E]): Query[Append[T, TableSchema[E]]]
def groupBy[R <: Expr[_] | Tuple](f: T => R): Query[(R, T)]
inline def join[E <: Product](using m: ProductOf[E]): Query[Append[T, TableSchema[E]]]
inline def leftJoin[E <: Product](using m: ProductOf[E]): Query[Append[T, TableSchema[E]]]
def map[R <: Expr[_] | TableSchema[_] | Tuple](f: T => R): Query[R]
def max[N <: SqlNumberType](f: T => Expr[N]): Query[Expr[N]]
def min[N <: SqlNumberType](f: T => Expr[N]): Query[Expr[N]]
def on(f: T => Expr[Boolean]): Query[T]
def resultType: List[FlatType[FlatType[T, SqlDataType, [T <: SqlDataType] =>> Expr[T]], Product, [E <: Product] =>> TableSchema[E]]]
inline def rightJoin[E <: Product](using m: ProductOf[E]): Query[Append[T, TableSchema[E]]]
def sortBy[R <: OrderBy | Tuple](f: T => R): Query[T]
def sql(db: DB): String
def sum[N <: SqlNumberType](f: T => Expr[N]): Query[Expr[Number]]
def take(n: Int): Query[T]
def toSql(using db: DB): String
def withFilter(f: T => Expr[Boolean]): Query[T]

Concrete fields

val s: Select[_, _]
val t: T