Attributes
- Companion
- trait
- Graph
-
- Supertypes
- Self type
-
DynamoDBQuery.type
Members list
Type members
Classlikes
Attributes
- Supertypes
- Known subtypes
-
Attributes
- Companion
- trait
- Supertypes
- Self type
-
TableStatus.type
Attributes
Attributes
- Supertypes
Inherited and Abstract types
The names of the product elements
The name of the type
Value members
Concrete methods
Each element in values
is zipped together using function body
which has signature A => DynamoDBQuery[B]
Note that when DynamoDBQuery
's are zipped together, on execution the queries are batched together as AWS DynamoDB batch queries whenever this is possible - only AWS GetItem, PutItem and DeleteItem queries can be batched, other query types will be executed in parallel.
Each element in values
is zipped together using function body
which has signature A => DynamoDBQuery[B]
Note that when DynamoDBQuery
's are zipped together, on execution the queries are batched together as AWS DynamoDB batch queries whenever this is possible - only AWS GetItem, PutItem and DeleteItem queries can be batched, other query types will be executed in parallel.
Note this is a low level function for a small amount of elements - if you want to perform a large number of reads and writes prefer the following utility functions - zio.dynamodb.batchReadItemFromStream, zio.dynamodb.batchWriteFromStream which work with ZStreams and efficiently limit batch sizes to the maximum size allowed by the AWS API, or alternatively use forEach
to implement your own streaming functions.
Note that if you need need access to unprocessedItems
or unprocessedKeys
then an error handler for DynamoDBError.BatchError
should be provided.
Attributes
Sometimes we want to save top level sum types to DynamoDB and we want to retrieve them back as the subtype with expressions in terms of the subtype as well. getWithNarrow
does a get
with a safe narrow operation from type From
to To
. If the narrow fails it returns a Decoding error with details of the cast failure in the message.
Sometimes we want to save top level sum types to DynamoDB and we want to retrieve them back as the subtype with expressions in terms of the subtype as well. getWithNarrow
does a get
with a safe narrow operation from type From
to To
. If the narrow fails it returns a Decoding error with details of the cast failure in the message.
Requires implicit schemas in scope which ensure that From
is an enum (sealed trait) and To
is a subtype.
Note this is an experimental API and may be subject to change.
Attributes
It is common to save the top level sum type to DynamoDB and often we want to save them back as the subtype with expressions in terms of the subtype as well. putWithNarrow
does a put
of type To
which is widened to type From
before the save to ensure that the discriminator is saved, and narrows the returned DynamoDBQuery to To
.
It is common to save the top level sum type to DynamoDB and often we want to save them back as the subtype with expressions in terms of the subtype as well. putWithNarrow
does a put
of type To
which is widened to type From
before the save to ensure that the discriminator is saved, and narrows the returned DynamoDBQuery to To
.
Requires implicit schemas in scope which ensure that From
is an enum (sealed trait) and To
is a subtype.
Note this is an experimental API and may be subject to change.
Attributes
when executed will return a ZStream of A
when executed will return a ZStream of A
Attributes
when executed will return a ZStream of Item
when executed will return a ZStream of Item
Attributes
when executed will return a Tuple of
when executed will return a Tuple of
Either[String,(Chunk[A], LastEvaluatedKey)]
Attributes
when executed will return a Tuple of
when executed will return a Tuple of
(Chunk[Item], LastEvaluatedKey)
Attributes
when executed will return a ZStream of A
when executed will return a ZStream of A
Attributes
when executed will return a ZStream of Item
when executed will return a ZStream of Item
Attributes
when executed will return a Tuple of
when executed will return a Tuple of
Either[String,(Chunk[A], LastEvaluatedKey)]
Attributes
when executed will return a Tuple of
when executed will return a Tuple of
(Chunk[Item], LastEvaluatedKey)