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 CollectionType(cons: CollectionTypeConstructor, elementType: Type) extends Type with Product with Serializable

  11. case class CollectionTypeConstructor(dummy: String = "") extends Product with Serializable

  12. abstract class ColumnOption[+T] extends AnyRef

  13. 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.

  14. 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[Long] = scala.None, offset: Option[Long] = scala.None) extends DefNode with Product with Serializable

    A SQL comprehension

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

    A conditional expression; all clauses should be IfThen nodes

  16. trait DefNode extends Node

    A Node which introduces Symbols.

  17. class DefaultSymbolScope extends SymbolScope

  18. final case class Drop(from: Node, num: Int) extends FilteredQuery with UnaryNode with Product with Serializable

    A .

  19. class DumpContext extends AnyRef

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

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

  21. 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.

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

    A .

  23. abstract class FilteredQuery extends Node

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

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

    Get the first element of a collection.

  25. class FunctionSymbol extends Symbol

    A Symbol that represents a library function or operator

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

  27. final case class GroupBy(fromGen: Symbol, from: Node, by: Node) extends BinaryNode with DefNode with Product with Serializable

    A .

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

    An if-then part of a Conditional node

  29. final case class Insert(generator: Symbol, table: Node, map: Node, linear: Node) extends Node with DefNode with Product with Serializable

    Represents an Insert operation.

  30. final case class InsertColumn(child: Node, fs: FieldSymbol) extends UnaryNode with SimplyTypedNode with Product with Serializable

    A column in an Insert operation.

  31. case class IntrinsicSymbol(target: Node) extends Symbol with Product with Serializable

  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 AnyRef

    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. trait ProductNode extends SimplyTypedNode

    An expression that represents a conjunction of expressions.

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

  47. 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.

  48. 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.

  49. 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.

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

    A reference to a Symbol

  51. 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).

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

    The row_number window function

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

  54. abstract class ScalaNumericType[T] extends ScalaBaseType[T] with NumericTypedType

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

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

    A Slick Type encoding of plain Scala types.

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

    A scope for scoped traversal

  58. 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.

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

    A node that represents an SQL sequence.

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

    Default implementation of TableIdentitySymbol

  61. 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.

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

    A .

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

    An expression that represents a structure, i.

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

  65. trait Symbol extends AnyRef

    A symbol which can be used in the AST.

  66. class SymbolNamer extends AnyRef

    Provides names for symbols

  67. trait SymbolScope extends AnyRef

  68. 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.

  69. trait TableIdentitySymbol extends TypeSymbol

    A TypeSymbol which uniquely identifies a table type

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

    A Node representing a database table.

  71. final case class Take(from: Node, num: Int) extends FilteredQuery with UnaryNode with Product with Serializable

    A .

  72. trait Type extends AnyRef

    Super-trait for all types

  73. final case class TypeMapping(child: Node, toBase: (Any) ⇒ Any, toMapped: (Any) ⇒ Any) extends UnaryNode with SimplyTypedNode with Product with Serializable

    A client-side type mapping

  74. trait TypeSymbol extends Symbol

    The symbol of a nominal type

  75. final class TypeUtil extends AnyVal

  76. trait Typed extends AnyRef

    Something that has a type

  77. trait TypedNode extends Node with Typed

  78. trait TypedType[T] extends Type

  79. trait UnaryNode extends Node

  80. 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.

  81. 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 CollectionTypeConstructor extends Serializable

  3. object ColumnOption

  4. object Dump

    Create a readable printout of an AST

  5. object ExtraUtil

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

  6. object Filter extends Serializable

  7. object FwdPath

  8. object JoinType

  9. object Library

    The standard library for query operators.

  10. object LiteralNode

  11. object Node extends Logging

  12. object NodeOps

  13. object OptionType

  14. object Ordering extends Serializable

  15. object Path

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

  16. object ProductNode

  17. object ProductOfCommonPaths

  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 TypedType

  26. object UnassignedType extends AtomicType with Product with Serializable

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

  27. object Util

    Utility methods for AST manipulation.

Deprecated Value Members

  1. object NoType extends AtomicType with Product with Serializable

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.1) Use UnassignedType or UnassignedStructuralType

Inherited from AnyRef

Inherited from Any

Ungrouped