zio.dynamodb
Members list
Type members
Classlikes
Attributes
- Graph
- Supertypes
- Self type
- Annotations.type
Attributes
- Graph
- Supertypes
- Self type
- AttributeDefinition.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- Self type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- AttributeValue.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
- Self type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- AttributeValueType.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
- object PayPerRequest.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- BillingMode.type
This object was generated by sbt-buildinfo.
This object was generated by sbt-buildinfo.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
- Self type
- BuildInfo.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- Self type
- ConditionExpression[From]
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- ConditionExpression.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- ConsistencyMode.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
- class TableDoesNotExists
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- DatabaseError.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- trait NoStackTraceclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass Any
- Known subtypes
- class DecodingErrorclass ValueNotFound
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- DynamoDBError.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- DynamoDBExecutor.type
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
- Self type
- DynamoDBExecutorImpl.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
- Self type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- DynamoDBQuery.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- FromAttributeValue.type
Attributes
- Graph
- Supertypes
Attributes
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
- trait PartitionKeyExpressionclass Equals
- Self type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
Attributes
- Companion:
- object
- Graph
- Supertypes
Attributes
- Graph
- Supertypes
Attributes
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
Attributes
- Graph
- Supertypes
- Known subtypes
- Self type
Attributes
- Companion:
- object
- Graph
- Supertypes
- Self type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- ProjectionExpression.type
Attributes
- Graph
- Supertypes
- Known subtypes
- object ProjectionExpression.type
Attributes
- Graph
- Supertypes
- Known subtypes
- object ProjectionExpression.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- ProjectionType.type
Attributes
- Graph
- Supertypes
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
Attributes
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- ReturnValues.type
Attributes
- Companion:
- object
- Graph
- Supertypes
Attributes
- Companion:
- class
- Graph
- Supertypes
- Self type
- SSESpecification.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
- object AllAttributes.typeobject AllProjectedAttributes.typeobject Count.typeobject SpecificAttributes.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- Self type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- SortKeyExpression.type
A Fake implementation of DynamoDBExecutor.Service that currently has the very modest aspiration of providing bare minimum
functionality to enable internal unit tests and to enable simple end to end examples that can serve as documentation.
Limited CRUD functionality is supported hence some features are currently not supported or have restrictions.
A Fake implementation of DynamoDBExecutor.Service that currently has the very modest aspiration of providing bare minimum
functionality to enable internal unit tests and to enable simple end to end examples that can serve as documentation.
Limited CRUD functionality is supported hence some features are currently not supported or have restrictions.
- Supported
- CRUD operations GetItem, PutItem, DeleteItem, BatchGetItem, BatchWriteItem
- Limited support
- Primary Keys - only the partition key can be specified and is only checked for equality
- Not currently supported
- Projections - all fields are returned for all queries
- Expressions - these include
KeyConditionExpression's,ConditionExpression's,ProjectionExpression's,UpdateExpression's - Create table, Delete table
- UpdateItem - this is a more complex case as it uses an expression to specify the update
- Indexes in ScanSome, ScanAll, QuerySome, QueryAll
'''Usage''': DynamoDBExecutor.test provides you the test DB instance in a ZLayer.
Tables are created using the addTable method in the test controller service TestDynamoDBExecutor. You specify
a table, a single primary and a var arg list of primary key/item pairs.
testM("getItem") {
for {
_ <- TestDynamoDBExecutor.addTable("tableName1", primaryKeyFieldName = "k1", primaryKey1 -> item1, primaryKey1_2 -> item1_2)
result <- GetItem(key = primaryKey1, tableName = tableName1).execute
expected = Some(item1)
} yield assert(result)(equalTo(expected))
}.provideLayer(DynamoDBExecutor.test)
Attributes
- Companion:
- object
- Graph
- Supertypes
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- TestDynamoDBExecutor.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- Self type
- ToAttributeValue.type
Attributes
- Graph
- Supertypes
- Known subtypes
- object ToAttributeValue.type
Attributes
- Graph
- Supertypes
- Known subtypes
- object ToAttributeValue.type
Attributes
- Companion:
- object
- Graph
- Supertypes
- Self type
Attributes
- Companion:
- class
- Graph
- Supertypes
- Self type
- UpdateExpression.type
Attributes
- Companion:
- trait
- Graph
- Supertypes
- trait ZippableLowPriority1trait ZippableLowPriority2trait ZippableLowPriority3trait ZippableLowPriority4class Objecttrait Matchableclass Any
- Self type
- Zippable.type
Attributes
- Graph
- Supertypes
- trait ZippableLowPriority2trait ZippableLowPriority3trait ZippableLowPriority4class Objecttrait Matchableclass Any
- Known subtypes
- object Zippable.type
Attributes
- Graph
- Supertypes
- Known subtypes
- trait ZippableLowPriority1object Zippable.type
Attributes
- Graph
- Supertypes
- Known subtypes
Attributes
- Graph
- Supertypes
- Known subtypes
Types
Value members
Concrete methods
Reads stream using function pk to determine the primary key which is then used to create a BatchGetItem request.
Stream is batched into groups of 100 items in a BatchGetItem and executed using the provided DynamoDBExecutor service
Returns a tuple of (A, Option[B]) where the option is None if the item is not found - this enables "LEFT outer
join" like functionality
Reads stream using function pk to determine the primary key which is then used to create a BatchGetItem request.
Stream is batched into groups of 100 items in a BatchGetItem and executed using the provided DynamoDBExecutor service
Returns a tuple of (A, Option[B]) where the option is None if the item is not found - this enables "LEFT outer
join" like functionality
Attributes
- A
Input stream element type
- B
implicit Schema[B] where B is the type of the element in the returned stream
- R
Environment
- mPar
Level of parallelism for the stream processing
- pk
Function to determine the primary key
- Returns:
stream of Either[DynamoDBError.DecodingError, (A, Option[B])]
Reads stream using function pk to determine the primary key which is then used to create a BatchGetItem request.
Stream is batched into groups of 100 items in a BatchGetItem and executed using the provided DynamoDBExecutor service
Reads stream using function pk to determine the primary key which is then used to create a BatchGetItem request.
Stream is batched into groups of 100 items in a BatchGetItem and executed using the provided DynamoDBExecutor service
Attributes
- R
Environment
- mPar
Level of parallelism for the stream processing
- pk
Function to determine the primary key
- Returns:
A stream of (A, Option[Item])
Reads stream and uses function f for creating a BatchWrite request that is executes for side effects. Stream is batched into groups
of 25 items in a BatchWriteItem and executed using the DynamoDBExecutor service provided in the environment.
Reads stream and uses function f for creating a BatchWrite request that is executes for side effects. Stream is batched into groups
of 25 items in a BatchWriteItem and executed using the DynamoDBExecutor service provided in the environment.
Attributes
- B
Type of DynamoDBQuery returned by
f- R
Environment
- f
Function that takes an
Aand returns a PutItem or WriteItem- mPar
Level of parallelism for the stream processing
- Returns:
A stream of results from the
DynamoDBQuerywrite's