scala.slick

ast

package ast

Abstract Syntax Tree (AST) for representing queries during compilation

Source
package.scala
Linear Supertypes
AnyRef, Any
Content Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ast
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. class AnonSymbol extends Symbol

    An anonymous symbol defined in the AST.

  2. class AnonTableIdentitySymbol extends AnonTypeSymbol with TableIdentitySymbol

    An anonymous TableIdentitySymbol.

  3. class AnonTypeSymbol extends TypeSymbol

    An anonymous symbol defined in the AST.

  4. final case class Apply(sym: Symbol, children: Seq[Node])(tpe: Type) extends TypedNode with Product with Serializable

    A function call expression.

  5. trait AtomicType extends Type

    An atomic type (i.

  6. trait BaseTypedType[T] extends TypedType[T] with AtomicType

  7. trait BinaryNode extends Node

  8. final case class Bind(generator: Symbol, from: Node, select: Node) extends BinaryNode with DefNode with Product with Serializable

    A .

  9. trait ClientSideOp extends AnyRef

    An operation which is expected to be run on the client side.

  10. final case class CollectionCast(child: Node, cons: CollectionTypeConstructor) extends UnaryNode with SimplyTypedNode with Product with Serializable

  11. final case class CollectionType(cons: CollectionTypeConstructor, elementType: Type) extends Type with Product with Serializable

  12. trait CollectionTypeConstructor extends AnyRef

    Represents a type constructor that can be usd for a collection-valued query.

  13. abstract class ColumnOption[+T] extends AnyRef

  14. final case class CompiledStatement(statement: String, extra: Any, tpe: Type) extends NullaryNode with TypedNode with Product with Serializable

    A compiled statement with a fixed type, a statement string and driver-specific extra data.

  15. final case class Comprehension(from: Seq[(Symbol, Node)] = collection.this.Seq.empty[Nothing], where: Seq[Node] = collection.this.Seq.empty[Nothing], groupBy: Option[Node] = scala.None, orderBy: Seq[(Node, Ordering)] = collection.this.Seq.empty[Nothing], select: Option[Node] = scala.None, fetch: Option[Node] = scala.None, offset: Option[Node] = scala.None) extends DefNode with Product with Serializable

    A SQL comprehension

  16. final case class ConditionalExpr(clauses: IndexedSeq[Node], elseClause: Node) extends SimplyTypedNode with Product with Serializable

    A conditional expression; all clauses should be IfThen nodes

  17. trait DefNode extends Node

    A Node which introduces Symbols.

  18. class DefaultSymbolScope extends SymbolScope

  19. final case class Drop(from: Node, count: Node) extends FilteredQuery with BinaryNode with Product with Serializable

    A .

  20. case class ElementSymbol(idx: Int) extends Symbol with Product with Serializable

    An element of a ProductNode (using a 1-based index)

  21. class ErasedCollectionTypeConstructor[C[_]] extends TypedCollectionTypeConstructor[C]

  22. case class FieldSymbol(name: String)(options: Seq[ColumnOption[_]], tpe: Type) extends Symbol with Typed with Product with Serializable

    A named symbol which refers to an (aliased or unaliased) field.

  23. final case class Filter(generator: Symbol, from: Node, where: Node) extends FilteredQuery with BinaryNode with DefNode with Product with Serializable

    A .

  24. abstract class FilteredQuery extends Node

    Common superclass for expressions of type (CollectionType(c, t), _) => CollectionType(c, t).

  25. final case class First(child: Node) extends UnaryNode with SimplyTypedNode with ClientSideOp with Product with Serializable

    Get the first element of a collection.

  26. class FunctionSymbol extends Symbol

    A Symbol that represents a library function or operator

  27. final case class GetOrElse(child: Node, default: () ⇒ Any) extends UnaryNode with SimplyTypedNode with Product with Serializable

  28. final case class GroupBy(fromGen: Symbol, from: Node, by: Node, identity: TypeSymbol = new AnonTypeSymbol()) extends BinaryNode with DefNode with Product with Serializable

    A .

  29. final case class IfThen(left: Node, right: Node) extends BinaryNode with SimplyTypedNode with Product with Serializable

    An if-then part of a Conditional node

  30. final case class Insert(tableSym: Symbol, table: Node, linear: Node) extends BinaryNode with DefNode with Product with Serializable

    Represents an Insert operation.

  31. final case class InsertColumn(children: IndexedSeq[Node], fs: FieldSymbol, tpe: Type) extends Node with TypedNode with Product with Serializable

    A column in an Insert operation.

  32. final case class Join(leftGen: Symbol, rightGen: Symbol, left: Node, right: Node, jt: JoinType, on: Node) extends DefNode with Product with Serializable

    A join expression of type (CollectionType(c, t), CollectionType(_, u)) => CollecionType(c, (t, u)).

  33. abstract class JoinType extends AnyRef

    The type of a join operation.

  34. trait LiteralNode extends NullaryNode with TypedNode

    A literal value expression.

  35. final class MappedScalaType extends Type

  36. trait Node extends Dumpable

    A node in the query AST.

  37. final class NodeOps extends AnyVal

    Extra methods for Nodes.

  38. final case class NominalType(sym: TypeSymbol)(structuralView: Type) extends Type with Product with Serializable

  39. trait NullaryNode extends Node

  40. trait NumericTypedType extends AnyRef

    Mark a TypedType as eligible for numeric operators.

  41. final case class OptionApply(child: Node) extends UnaryNode with SimplyTypedNode with Product with Serializable

  42. trait OptionType extends Type

  43. trait OptionTypedType[T] extends TypedType[Option[T]] with OptionType

  44. final case class Ordering(direction: Direction = Ordering.Asc, nulls: NullOrdering = Ordering.NullsDefault) extends Product with Serializable

  45. final case class ParameterSwitch(cases: Seq[((Any) ⇒ Boolean, Node)], default: Node) extends SimplyTypedNode with ClientSideOp with Product with Serializable

    A switch for special-cased parameters that needs to be interpreted in order to find the correct query string for the query arguments.

  46. trait ProductNode extends SimplyTypedNode

    An expression that represents a conjunction of expressions.

  47. final case class ProductType(elements: IndexedSeq[Type]) extends Type with Product with Serializable

  48. final case class Pure(value: Node, identity: TypeSymbol = new AnonTypeSymbol()) extends UnaryNode with SimplyTypedNode with Product with Serializable

    An expression that represents a plain value lifted into a Query.

  49. final case class QueryParameter(extractor: (Any) ⇒ Any, tpe: Type) extends NullaryNode with TypedNode with Product with Serializable

    A parameter from a QueryTemplate which gets turned into a bind variable.

  50. final case class RangeFrom(start: Long = 1L) extends NullaryNode with TypedNode with Product with Serializable

    A Query of this special Node represents an infinite stream of consecutive numbers starting at the given number.

  51. final case class Ref(sym: Symbol) extends NullaryNode with Product with Serializable

    A reference to a Symbol

  52. final case class ResultSetMapping(generator: Symbol, from: Node, map: Node) extends BinaryNode with DefNode with ClientSideOp with Product with Serializable

    A client-side projection of type (CollectionType(c, t), u) => CollectionType(c, u).

  53. final case class RowNumber(by: Seq[(Node, Ordering)] = collection.this.Seq.empty[Nothing]) extends TypedNode with Product with Serializable

    The row_number window function

  54. class ScalaBaseType[T] extends ScalaType[T] with BaseTypedType[T]

  55. class ScalaNumericType[T] extends ScalaBaseType[T] with NumericTypedType

  56. class ScalaOptionType[T] extends ScalaType[Option[T]] with OptionTypedType[T]

  57. trait ScalaType[T] extends TypedType[T]

    A Slick Type encoding of plain Scala types.

  58. case class Scope(m: Map[Symbol, (Node, Scope)]) extends Product with Serializable

    A scope for scoped traversal

  59. final case class Select(in: Node, field: Symbol) extends UnaryNode with SimplyTypedNode with Product with Serializable

    An expression that selects a field in another expression.

  60. final case class SequenceNode(name: String)(increment: Long) extends NullaryNode with TypedNode with Product with Serializable

    A node that represents an SQL sequence.

  61. case class SimpleTableIdentitySymbol(constituents: AnyRef*) extends TableIdentitySymbol with Product with Serializable

    Default implementation of TableIdentitySymbol

  62. trait SimplyTypedNode extends Node

    A Node whose children can be typed independently of each other and which can be typed without access to its scope.

  63. final case class SortBy(generator: Symbol, from: Node, by: Seq[(Node, Ordering)]) extends FilteredQuery with DefNode with Product with Serializable

    A .

  64. final case class StructNode(elements: IndexedSeq[(Symbol, Node)]) extends ProductNode with DefNode with Product with Serializable

    An expression that represents a structure, i.

  65. final case class StructType(elements: IndexedSeq[(Symbol, Type)]) extends Type with Product with Serializable

  66. trait Symbol extends AnyRef

    A symbol which can be used in the AST.

  67. class SymbolNamer extends AnyRef

    Provides names for symbols

  68. trait SymbolScope extends AnyRef

  69. final case class TableExpansion(generator: Symbol, table: Node, columns: Node) extends BinaryNode with DefNode with Product with Serializable

    A table together with its expansion into columns.

  70. trait TableIdentitySymbol extends TypeSymbol

    A TypeSymbol which uniquely identifies a table type

  71. final case class TableNode(schemaName: Option[String], tableName: String, identity: TableIdentitySymbol, driverTable: Any, baseIdentity: TableIdentitySymbol) extends NullaryNode with TypedNode with Product with Serializable

    A Node representing a database table.

  72. final case class Take(from: Node, count: Node) extends FilteredQuery with BinaryNode with Product with Serializable

    A .

  73. trait Type extends AnyRef

    Super-trait for all types

  74. final case class TypeMapping(child: Node, mapper: Mapper, classTag: ClassTag[_]) extends UnaryNode with SimplyTypedNode with Product with Serializable

    A client-side type mapping

  75. trait TypeSymbol extends Symbol

    The symbol of a nominal type

  76. final class TypeUtil extends AnyVal

  77. trait Typed extends AnyRef

    Something that has a type

  78. abstract class TypedCollectionTypeConstructor[C[_]] extends CollectionTypeConstructor

    Annotations
    @implicitNotFound( ... )
  79. trait TypedNode extends Node with Typed

  80. trait TypedType[T] extends Type

  81. trait UnaryNode extends Node

  82. final case class UnassignedStructuralType(sym: TypeSymbol) extends AtomicType with Product with Serializable

    The type of a structural view of a NominalType before computing the proper type in the inferTypes phase.

  83. final case class Union(left: Node, right: Node, all: Boolean, leftGen: Symbol = new AnonSymbol(), rightGen: Symbol = new AnonSymbol()) extends BinaryNode with DefNode with SimplyTypedNode with Product with Serializable

    A union of type (CollectionType(c, t), CollectionType(_, t)) => CollectionType(c, t).

Value Members

  1. object ClientSideOp

  2. object ColumnOption

  3. object ExtraUtil

    Some less general but still useful methods for the code generators.

  4. object Filter extends Serializable

  5. object FwdPath

  6. object JoinType

  7. object Library

    The standard library for query operators.

  8. object LiteralNode

  9. object MappedScalaType

  10. object Node extends Logging

  11. object NodeOps

  12. object OptionType

  13. object Ordering extends Serializable

  14. object Path

    A constructor/extractor for nested Selects starting at a Ref.

  15. object ProductNode

  16. object ProductOfCommonPaths

  17. object QueryParameter extends Serializable

  18. object ScalaBaseType

  19. object Scope extends Serializable

  20. object SymbolNamer

  21. object SymbolScope

  22. object TypeUtil

  23. object TypeUtilOps

  24. object Typed

  25. object TypedCollectionTypeConstructor

  26. object TypedType

  27. object UnassignedType extends AtomicType with Product with Serializable

    The standard type for freshly constructed nodes without an explicit type.

  28. object Util

    Utility methods for AST manipulation.

Inherited from AnyRef

Inherited from Any

Ungrouped