ProjectionExpression

zio.dynamodb.ProjectionExpression
See theProjectionExpression companion trait

Attributes

Companion
trait
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
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
OpticType.type
sealed trait OpticType

Attributes

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

Attributes

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
Supertypes
class Object
trait Matchable
class Any
implicit class ProjectionExpressionSyntax1[From, To](self: ProjectionExpression[From, To])

Attributes

Inherited from:
ProjectionExpressionLowPriorityImplicits1
Supertypes
class Object
trait Matchable
class Any

Types

type Unknown

Inherited and Abstract types

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 $$[From, To](s: String): ProjectionExpression[From, To]
def accessors[A](implicit s: Schema[A]): s.Accessors[builder.Lens, builder.Prism, builder.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")

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

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 ProjectionExpressionSyntax0[From, To : ToAttributeValue](self: ProjectionExpression[From, To]): ProjectionExpressionSyntax0[From, To]

Attributes

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

Attributes

Inherited from:
ProjectionExpressionLowPriorityImplicits1