CaseClassShape
A generic case class shape that can be used to lift a case class of plain Scala types to a case class of lifted types. This allows the type to be used as a record type (like tuples and HLists) in the Lifted Embedding.
Example:
case class C(a: Int, b: Option[String])
case class LiftedC(a: Column[Int], b: Column[Option[String]])
implicit object cShape extends CaseClassShape(LiftedC.tupled, C.tupled)
Attributes
- Source
- Shape.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited types
Attributes
- Inherited from:
- Shape
- Source
- Shape.scala
Attributes
- Inherited from:
- Shape
- Source
- Shape.scala
Attributes
- Inherited from:
- Shape
- Source
- Shape.scala
Value members
Concrete methods
Build a record value represented by this Shape from its element values.
Build a record value represented by this Shape from its element values.
Attributes
- Definition Classes
- Source
- Shape.scala
Create a copy of this Shape with new element Shapes. This is used for packing Shapes recursively.
Create a copy of this Shape with new element Shapes. This is used for packing Shapes recursively.
Attributes
- Definition Classes
- Source
- Shape.scala
Attributes
- Definition Classes
- Source
- Shape.scala
Inherited methods
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
- Inherited from:
- ProductNodeShape
- Source
- Shape.scala
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
- Inherited from:
- ProductNodeShape
- Source
- Shape.scala
Get the element value from a record value at the specified index.
Get the element value from a record value at the specified index.
Attributes
- Inherited from:
- MappedScalaProductShape
- Source
- Shape.scala
Get an Iterator of a record value's element values. The default implementation repeatedly calls getElement.
Get an Iterator of a record value's element values. The default implementation repeatedly calls getElement.
Attributes
- Definition Classes
- Inherited from:
- MappedScalaProductShape
- Source
- Shape.scala
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
- Inherited from:
- ProductNodeShape
- Source
- Shape.scala
Return the fully packed Shape
Attributes
- Inherited from:
- MappedProductShape
- Source
- Shape.scala
Return an AST Node representing a mixed value.
Return an AST Node representing a mixed value.
Attributes
- Definition Classes
- Inherited from:
- MappedProductShape
- Source
- Shape.scala
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
ProductNodeShape -> Any
- Inherited from:
- ProductNodeShape
- Source
- Shape.scala
Concrete fields
The Shapes for the product elements.