Package

com.github.tminglei.slickpg

agg

Permalink

package agg

Visibility
  1. Public
  2. All

Type Members

  1. final case class AggFuncExpr(aggFunc: FunctionSymbol, params: ConstArray[Node], orderBy: ConstArray[(Node, Ordering)] = ConstArray.empty, filter: Option[Node] = None, distinct: Boolean = false, forOrderedSet: Boolean = false)(buildType: Type) extends SimplyTypedNode with Product with Serializable

    Permalink

    An aggregate function call expression

  2. case class AggFuncParts(aggFunc: FunctionSymbol, params: Seq[Node] = Nil, orderBy: Option[Ordered] = None, filter: Option[Node] = None, distinct: Boolean = false, forOrderedSet: Boolean = false) extends Product with Serializable

    Permalink

    pg aggregate function support, usage:

    pg aggregate function support, usage:

    object AggregateLibrary {
      val PercentileDisc = new SqlFunction("percentile_disc")
    }
    def percentileDisc(f: Double) = agg.OrderedAggFuncBuilder(AggLibrary.PercentileDisc, List(LiteralNode(f)))
    ...
    percentileDisc(0.5d).filter(t.y < 130d).within(t.x desc) <=> percentile_disc(0.5) within group ( order by "x" desc) filter ( where "y" < 130.0)
  3. case class AggFuncRep[R](_parts: AggFuncParts)(implicit evidence$2: TypedType[R]) extends TypedRep[R] with Product with Serializable

    Permalink
  4. case class OrderedAggFuncRep[R](_parts: AggFuncParts)(implicit evidence$4: TypedType[R]) extends TypedRep[R] with Product with Serializable

    Permalink
  5. case class OrderedAggFuncRepWithTypes[T, R](_parts: AggFuncParts)(implicit evidence$6: TypedType[R]) extends TypedRep[R] with Product with Serializable

    Permalink
  6. trait PgAggFuncSupport extends JdbcTypesComponent

    Permalink

Value Members

  1. object AggFuncRep extends Serializable

    Permalink
  2. object OrderedAggFuncRep extends Serializable

    Permalink
  3. object PgAggFuncSupport extends PgAggFuncSupport with PostgresProfile

    Permalink

Ungrouped