Shape

slick.lifted.Shape
See theShape companion object
abstract class Shape[Level <: ShapeLevel, -Mixed_, Unpacked_, Packed_]

A type class that encodes the unpacking Mixed => Unpacked of a Query[Mixed] to its result element type Unpacked and the packing to a fully packed type Packed, i.e. a type where everything which is not a transparent container is wrapped in a Column[_].

=Example:=

  • Mixed: (Column[Int], Column[(Int, String)], (Int, Option[Double]))
  • Unpacked: (Int, (Int, String), (Int, Option[Double]))
  • Packed: (Column[Int], Column[(Int, String)], (Column[Int], Column[Option[Double]]))
  • Linearized: (Int, Int, String, Int, Option[Double])

Attributes

Companion:
object
Source:
Shape.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class ProductNodeShape[Level, C, M, U, P]
class MappedProductShape[Level, C, M, U, P]
class MappedScalaProductShape[Level, C, M, U, P]
class HListShape[Level, M, U, P]
class CaseClassShape[P, LiftedTuple, LiftedCaseClass, PlainTuple, PlainCaseClass]
class ProductClassShape[E, C]
class TupleShape[Level, M, U, P]
object RepShape.type

Members list

Concise view

Type members

Types

type Mixed = Mixed_
Implicitly added by anyOptionShape

Attributes

Source:
Shape.scala
type Mixed = Mixed_
Implicitly added by optionShape

Attributes

Source:
Shape.scala
type Mixed = Mixed_
Implicitly added by tuple1Shape

Attributes

Source:
Shape.scala
type Mixed = Mixed_

Attributes

Source:
Shape.scala
type Packed = Packed_
Implicitly added by anyOptionShape

Attributes

Source:
Shape.scala
type Packed = Packed_
Implicitly added by optionShape

Attributes

Source:
Shape.scala
type Packed = Packed_
Implicitly added by tuple1Shape

Attributes

Source:
Shape.scala
type Packed = Packed_

Attributes

Source:
Shape.scala
type Unpacked = Unpacked_
Implicitly added by anyOptionShape

Attributes

Source:
Shape.scala
type Unpacked = Unpacked_
Implicitly added by optionShape

Attributes

Source:
Shape.scala
type Unpacked = Unpacked_
Implicitly added by tuple1Shape

Attributes

Source:
Shape.scala
type Unpacked = Unpacked_

Attributes

Source:
Shape.scala

Value members

Abstract methods

def buildParams(extract: Any => Unpacked): Packed
Implicitly added by anyOptionShape

Build a packed representation containing QueryParameters that can extract data from the unpacked representation later. This method is not available for shapes where Mixed and Unpacked are different types.

Build a packed representation containing QueryParameters that can extract data from the unpacked representation later. This method is not available for shapes where Mixed and Unpacked are different types.

Attributes

Source:
Shape.scala
def buildParams(extract: Any => Unpacked): Packed
Implicitly added by optionShape

Build a packed representation containing QueryParameters that can extract data from the unpacked representation later. This method is not available for shapes where Mixed and Unpacked are different types.

Build a packed representation containing QueryParameters that can extract data from the unpacked representation later. This method is not available for shapes where Mixed and Unpacked are different types.

Attributes

Source:
Shape.scala
def buildParams(extract: Any => Unpacked): Packed
Implicitly added by tuple1Shape

Build a packed representation containing QueryParameters that can extract data from the unpacked representation later. This method is not available for shapes where Mixed and Unpacked are different types.

Build a packed representation containing QueryParameters that can extract data from the unpacked representation later. This method is not available for shapes where Mixed and Unpacked are different types.

Attributes

Source:
Shape.scala
def buildParams(extract: Any => Unpacked): Packed

Build a packed representation containing QueryParameters that can extract data from the unpacked representation later. This method is not available for shapes where Mixed and Unpacked are different types.

Build a packed representation containing QueryParameters that can extract data from the unpacked representation later. This method is not available for shapes where Mixed and Unpacked are different types.

Attributes

Source:
Shape.scala
def encodeRef(value: Any, path: Node): Any
Implicitly added by anyOptionShape

Encode a reference into a value of this Shape. This method may not be available for shapes where Mixed and Packed are different types.

Encode a reference into a value of this Shape. This method may not be available for shapes where Mixed and Packed are different types.

Attributes

Source:
Shape.scala
def encodeRef(value: Any, path: Node): Any
Implicitly added by optionShape

Encode a reference into a value of this Shape. This method may not be available for shapes where Mixed and Packed are different types.

Encode a reference into a value of this Shape. This method may not be available for shapes where Mixed and Packed are different types.

Attributes

Source:
Shape.scala
def encodeRef(value: Any, path: Node): Any
Implicitly added by tuple1Shape

Encode a reference into a value of this Shape. This method may not be available for shapes where Mixed and Packed are different types.

Encode a reference into a value of this Shape. This method may not be available for shapes where Mixed and Packed are different types.

Attributes

Source:
Shape.scala
def encodeRef(value: Any, path: Node): Any

Encode a reference into a value of this Shape. This method may not be available for shapes where Mixed and Packed are different types.

Encode a reference into a value of this Shape. This method may not be available for shapes where Mixed and Packed are different types.

Attributes

Source:
Shape.scala
def pack(value: Any): Packed
Implicitly added by anyOptionShape

Convert a value of this Shape's (mixed) type to the fully packed type

Convert a value of this Shape's (mixed) type to the fully packed type

Attributes

Source:
Shape.scala
def pack(value: Any): Packed
Implicitly added by optionShape

Convert a value of this Shape's (mixed) type to the fully packed type

Convert a value of this Shape's (mixed) type to the fully packed type

Attributes

Source:
Shape.scala
def pack(value: Any): Packed
Implicitly added by tuple1Shape

Convert a value of this Shape's (mixed) type to the fully packed type

Convert a value of this Shape's (mixed) type to the fully packed type

Attributes

Source:
Shape.scala
def pack(value: Any): Packed

Convert a value of this Shape's (mixed) type to the fully packed type

Convert a value of this Shape's (mixed) type to the fully packed type

Attributes

Source:
Shape.scala
Implicitly added by anyOptionShape

Return the fully packed Shape

Return the fully packed Shape

Attributes

Source:
Shape.scala
Implicitly added by optionShape

Return the fully packed Shape

Return the fully packed Shape

Attributes

Source:
Shape.scala
Implicitly added by tuple1Shape

Return the fully packed Shape

Return the fully packed Shape

Attributes

Source:
Shape.scala

Return the fully packed Shape

Return the fully packed Shape

Attributes

Source:
Shape.scala
def toNode(value: Any): Node
Implicitly added by anyOptionShape

Return an AST Node representing a mixed value.

Return an AST Node representing a mixed value.

Attributes

Source:
Shape.scala
def toNode(value: Any): Node
Implicitly added by optionShape

Return an AST Node representing a mixed value.

Return an AST Node representing a mixed value.

Attributes

Source:
Shape.scala
def toNode(value: Any): Node
Implicitly added by tuple1Shape

Return an AST Node representing a mixed value.

Return an AST Node representing a mixed value.

Attributes

Source:
Shape.scala
def toNode(value: Any): Node

Return an AST Node representing a mixed value.

Return an AST Node representing a mixed value.

Attributes

Source:
Shape.scala