package norm
- Alphabetic
- Public
- Protected
Type Members
- class ExpandSelection extends AnyRef
- case class FlattenGroupByAggregation(agg: Ident) extends StatelessTransformer with Product with Serializable
- class SqlNormalize extends AnyRef
Value Members
- object AddDropToNestedOrderBy
In SQL Server,
Order Byclauses are only allowed in sub-queries if the sub-query has aTOPorOFFSETmodifier.In SQL Server,
Order Byclauses are only allowed in sub-queries if the sub-query has aTOPorOFFSETmodifier. Otherwise an exception will be thrown. This transformation adds a 'dummy'OFFSET 0in this scenario (if anOffsetclause does not exist already). - object ExpandDistinct
- object ExpandJoin
This phase expands inner joins adding the correct aliases so they will function.
This phase expands inner joins adding the correct aliases so they will function. Unfortunately, since it introduces aliases into the clauses that don't actually exist in the inner expressions, it is not technically type-safe but will not result in a Quat error since Quats cannot check for Ident scoping. For a better implementation, that uses a well-typed FlatMap/FlatJoin cascade, have a look here: Better Typed ExpandJoin which uses FlatMap/FlatJoin
The reason the above implementation is not currently used is because
ExpandNestedQueriesdoes not yet use Quat fields for expansion. Once this is changed, using that implementation here should be reconsidered. - object ExpandMappedInfix
- object ExpandNestedQueries extends StatelessQueryTransformer
- object SqlNormalize