DynamoDBQuery

zio.dynamodb.DynamoDBQuery$
See theDynamoDBQuery companion trait
object DynamoDBQuery

Attributes

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

Members list

Type members

Classlikes

sealed trait Constructor[-In, +A] extends DynamoDBQuery[In, A]

Attributes

Supertypes
trait DynamoDBQuery[In, A]
class Object
trait Matchable
class Any
Known subtypes
trait Write[In, A]
final case class DescribeTableResponse(tableArn: String, tableStatus: TableStatus, tableSizeBytes: Long, itemCount: Long)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class EmptyTransaction() extends Throwable

Attributes

Supertypes
trait Product
trait Equals
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all
object ScanAll

Attributes

Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
ScanAll.type
object TableStatus

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
sealed trait TableStatus

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Active.type
object Archived.type
object Archiving.type
object Creating.type
object Deleting.type
object Updating.type
object unknownToSdkVersion.type
Show all
sealed trait Write[-In, +A] extends Constructor[In, A]

Attributes

Supertypes
trait Constructor[In, A]
trait DynamoDBQuery[In, A]
class Object
trait Matchable
class Any

Inherited 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

def apply[A](a: => A): DynamoDBQuery[Any, A]
def conditionCheck(tableName: String, primaryKey: PrimaryKey)(conditionExpression: ConditionExpression[_]): ConditionCheck
def createTable(tableName: String, keySchema: KeySchema, billingMode: BillingMode, sseSpecification: Option[SSESpecification], tags: Map[String, String])(attributeDefinition: AttributeDefinition, attributeDefinitions: AttributeDefinition*): CreateTable
def deleteFrom[From : Schema](tableName: String)(primaryKeyExpr: PrimaryKeyExpr[From]): DynamoDBQuery[Any, Option[From]]
def deleteItem(tableName: String, key: PrimaryKey): Write[Any, Option[Item]]
def deleteTable(tableName: String): DeleteTable
def describeTable(tableName: String): DescribeTable
def fail(e: => DynamoDBError): DynamoDBQuery[Any, Nothing]
def forEach[In, A, B](values: Iterable[A])(body: A => DynamoDBQuery[In, B]): DynamoDBQuery[In, List[B]]

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.

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.

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.

Attributes

def fromEither[A](or: Either[DynamoDBError, A]): DynamoDBQuery[Any, A]
def get[From : Schema](tableName: String)(primaryKeyExpr: PrimaryKeyExpr[From]): DynamoDBQuery[From, Either[DynamoDBError, From]]
def getItem(tableName: String, key: PrimaryKey, projections: ProjectionExpression[_, _]*): DynamoDBQuery[Any, Option[Item]]
def put[A : Schema](tableName: String, a: A): DynamoDBQuery[A, Option[A]]
def putItem(tableName: String, item: Item): DynamoDBQuery[Any, Option[Item]]
def queryAll[A : Schema](tableName: String): DynamoDBQuery[A, Stream[Throwable, A]]

when executed will return a ZStream of A

when executed will return a ZStream of A

Attributes

def queryAllItem(tableName: String, projections: ProjectionExpression[_, _]*): QueryAll

when executed will return a ZStream of Item

when executed will return a ZStream of Item

Attributes

def querySome[A : Schema](tableName: String, limit: Int): DynamoDBQuery[A, (Chunk[A], LastEvaluatedKey)]

when executed will return a Tuple of

when executed will return a Tuple of

Either[String,(Chunk[A], LastEvaluatedKey)]

Attributes

def querySomeItem(tableName: String, limit: Int, projections: ProjectionExpression[_, _]*): QuerySome

when executed will return a Tuple of

when executed will return a Tuple of

(Chunk[Item], LastEvaluatedKey)

Attributes

def scanAll[A : Schema](tableName: String): DynamoDBQuery[A, Stream[Throwable, A]]

when executed will return a ZStream of A

when executed will return a ZStream of A

Attributes

def scanAllItem(tableName: String, projections: ProjectionExpression[_, _]*): ScanAll

when executed will return a ZStream of Item

when executed will return a ZStream of Item

Attributes

def scanSome[A : Schema](tableName: String, limit: Int): DynamoDBQuery[A, (Chunk[A], LastEvaluatedKey)]

when executed will return a Tuple of

when executed will return a Tuple of

Either[String,(Chunk[A], LastEvaluatedKey)]

Attributes

def scanSomeItem(tableName: String, limit: Int, projections: ProjectionExpression[_, _]*): ScanSome

when executed will return a Tuple of

when executed will return a Tuple of

(Chunk[Item], LastEvaluatedKey)

Attributes

def succeed[A](a: => A): DynamoDBQuery[Any, A]
def update[From : Schema](tableName: String)(primaryKeyExpr: PrimaryKeyExpr[From])(action: Action[From]): DynamoDBQuery[From, Option[From]]
def updateItem[A](tableName: String, key: PrimaryKey)(action: Action[A]): DynamoDBQuery[A, Option[Item]]