← ZIO Dynamodb docs

ProjectionExpression

zio.dynamodb.ProjectionExpression
See theProjectionExpression companion trait

Attributes

Companion
trait
Source
ProjectionExpression.scala
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

object OpticType

Attributes

Companion
trait
Source
ProjectionExpression.scala
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
OpticType.type
sealed trait OpticType

Attributes

Companion
object
Source
ProjectionExpression.scala
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Lens
class Prism
implicit class ProjectionExpressionSyntax[From](self: ProjectionExpression[From, Unknown])

Attributes

Source
ProjectionExpression.scala
Supertypes
class Object
trait Matchable
class Any

Inherited classlikes

implicit class ProjectionExpressionSyntax2[From, To](self: ProjectionExpression[From, To])(implicit evidence$1: ToAttributeValue[To])

Attributes

Inherited from:
ProjectionExpressionLowPriorityImplicits
Source
ProjectionExpression.scala
Supertypes
class Object
trait Matchable
class Any

Types

type Unknown

Attributes

Source
ProjectionExpression.scala

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete methods

Unsafe version of parse that throws an IllegalStateException rather than returning an Either. Note all path elements are substituted automatically using the ExpressionAttributeNames facility. The underscore "_" and hypen "-" are allowed in the name without any escaping. Any other special characters must be escaped with backticks as the first and last characters.

Unsafe version of parse that throws an IllegalStateException rather than returning an Either. Note all path elements are substituted automatically using the ExpressionAttributeNames facility. The underscore "_" and hypen "-" are allowed in the name without any escaping. Any other special characters must be escaped with backticks as the first and last characters.

Examples:

$("foo")            // simple map element
$("foo.bar[9].baz") // array element with nested access
$("`foo.bar`")      // simple map element with a dot in the name
$("foo_bar")        // simple map element
$("foo-bar")        // simple map element

Attributes

See also
Source
ProjectionExpression.scala
def $$[From, To](s: String): ProjectionExpression[From, To]

Attributes

Source
ProjectionExpression.scala
def accessors[A](implicit s: Schema[A]): s.Accessors[builder.Lens, builder.Prism, builder.Traversal]

Attributes

Source
ProjectionExpression.scala
def apply(name: String): MapElement[Nothing, Nothing]

Attributes

Source
ProjectionExpression.scala

Parses a string into an ProjectionExpression Note all path elements are substituted automatically using the ExpressionAttributeNames facility. The underscore "_" and hypen "-" are allowed in the name without any escaping. Any other special characters must be escaped with backticks as the first and last characters. eg

Parses a string into an ProjectionExpression Note all path elements are substituted automatically using the ExpressionAttributeNames facility. The underscore "_" and hypen "-" are allowed in the name without any escaping. Any other special characters must be escaped with backticks as the first and last characters. eg

parse("foo.bar[9].baz"")
// Right(MapElement(ListElement(MapElement(Root(bar),baz),9),baz))
parse(fo$$o.ba$$r[9].ba$$z)
// Left("error with fo$$o,error with ba$$r[9],error with ba$$z")

Value parameters

s

Projection expression as a string

Attributes

Returns

either a Right of ProjectionExpression if successful, else a list of errors in a string

Source
ProjectionExpression.scala

Attributes

Source
ProjectionExpression.scala

Concrete fields

val builder: AccessorBuilder { type Lens = [F, From, To] =>> ProjectionExpression[From, To]; type Prism = [F, From, To] =>> ProjectionExpression[From, To]; type Traversal = [From, To] =>> Unit; }

Attributes

Source
ProjectionExpression.scala

Implicits

Implicits

Attributes

Source
ProjectionExpression.scala

Inherited implicits