object DynamoDBQuery
- Alphabetic
- By Inheritance
- DynamoDBQuery
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- sealed trait Constructor[-In, +A] extends DynamoDBQuery[In, A]
- final case class DescribeTableResponse(tableArn: String, tableStatus: TableStatus, tableSizeBytes: Long, itemCount: Long) extends Product with Serializable
- final case class EmptyTransaction() extends Throwable with Product with Serializable
- sealed trait TableStatus extends AnyRef
- sealed trait Write[-In, +A] extends Constructor[In, A]
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[A](a: => A): DynamoDBQuery[Any, A]
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def conditionCheck(tableName: String, primaryKey: PrimaryKey)(conditionExpression: ConditionExpression[_]): ConditionCheck
- def createTable(tableName: String, keySchema: KeySchema, billingMode: BillingMode, sseSpecification: Option[SSESpecification] = None, tags: scala.collection.immutable.Map[String, String] = ScalaMap.empty)(attributeDefinition: AttributeDefinition, attributeDefinitions: AttributeDefinition*): CreateTable
- def deleteFrom[From](tableName: String)(primaryKeyExpr: PrimaryKeyExpr[From])(implicit arg0: Schema[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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def fail(e: => DynamoDBError): DynamoDBQuery[Any, Nothing]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def forEach[In, A, B](values: Iterable[A])(body: (A) => DynamoDBQuery[In, B]): DynamoDBQuery[In, List[B]]
Each element in
valuesis zipped together using functionbodywhich has signatureA => DynamoDBQuery[B]Note that whenDynamoDBQuery'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
valuesis zipped together using functionbodywhich has signatureA => DynamoDBQuery[B]Note that whenDynamoDBQuery'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
forEachto implement your own streaming functions.Note that if you need need access to
unprocessedItemsorunprocessedKeysthen an error handler forDynamoDBBatchErrorshould be provided. - def fromEither[A](or: Either[DynamoDBError, A]): DynamoDBQuery[Any, A]
- def get[From](tableName: String)(primaryKeyExpr: PrimaryKeyExpr[From])(implicit arg0: Schema[From]): DynamoDBQuery[From, Either[DynamoDBError, From]]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getItem(tableName: String, key: PrimaryKey, projections: ProjectionExpression[_, _]*): DynamoDBQuery[Any, Option[Item]]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def put[A](tableName: String, a: A)(implicit arg0: Schema[A]): DynamoDBQuery[A, Option[A]]
- def putItem(tableName: String, item: Item): DynamoDBQuery[Any, Option[Item]]
- def queryAll[A](tableName: String)(implicit arg0: Schema[A]): DynamoDBQuery[A, Stream[Throwable, A]]
when executed will return a ZStream of A
- def queryAllItem(tableName: String, projections: ProjectionExpression[_, _]*): QueryAll
when executed will return a ZStream of Item
- def querySome[A](tableName: String, limit: Int)(implicit arg0: Schema[A]): DynamoDBQuery[A, (Chunk[A], LastEvaluatedKey)]
when executed will return a Tuple of
when executed will return a Tuple of
Either[String,(Chunk[A], LastEvaluatedKey)] - 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)
- def scanAll[A](tableName: String)(implicit arg0: Schema[A]): DynamoDBQuery[A, Stream[Throwable, A]]
when executed will return a ZStream of A
- def scanAllItem(tableName: String, projections: ProjectionExpression[_, _]*): ScanAll
when executed will return a ZStream of Item
- def scanSome[A](tableName: String, limit: Int)(implicit arg0: Schema[A]): DynamoDBQuery[A, (Chunk[A], LastEvaluatedKey)]
when executed will return a Tuple of
when executed will return a Tuple of
Either[String,(Chunk[A], LastEvaluatedKey)] - 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)
- def succeed[A](a: => A): DynamoDBQuery[Any, A]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def update[From](tableName: String)(primaryKeyExpr: PrimaryKeyExpr[From])(action: Action[From])(implicit arg0: Schema[From]): DynamoDBQuery[From, Option[From]]
- def updateItem[A](tableName: String, key: PrimaryKey)(action: Action[A]): DynamoDBQuery[A, Option[Item]]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object ScanAll extends Serializable
- object TableStatus