ProjectionExpression

zio.dynamodb.ProjectionExpression$
See theProjectionExpression companion trait

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Type members

Classlikes

final case class Meta(opticType: OpticType)

Attributes

Graph
Supertypes
trait Product
trait Equals
class Object
trait Matchable
class Any
object OpticType

Attributes

Companion:
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait OpticType

Attributes

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Inherited classlikes

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

Attributes

Inherited from:
ProjectionExpressionLowPriorityImplicits0
Graph
Supertypes
class Object
trait Matchable
class Any
implicit class ProjectionExpressionSyntax1[From, To](self: ProjectionExpression[From, To])

Attributes

Inherited from:
ProjectionExpressionLowPriorityImplicits1
Graph
Supertypes
class Object
trait Matchable
class Any

Types

type Unknown

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

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:
def accessors[A](implicit s: Schema[A]): Accessors[Lens, Prism, Traversal]
def apply(name: String): MapElement[Nothing, Nothing]

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")

Attributes

s

Projection expression as a string

Returns:

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

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; }

Implicits

Implicits

Inherited implicits

final implicit def ProjectionExpressionSyntax1[From, To](self: ProjectionExpression[From, To]): ProjectionExpressionSyntax1[From, To]