DynamoDBQuery

zio.dynamodb.DynamoDBQuery
See theDynamoDBQuery companion object
sealed trait DynamoDBQuery[-In, +Out]

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Constructor[In, A]
trait Write[In, A]
Self type
DynamoDBQuery[In, Out]

Members list

Concise view

Value members

Concrete methods

final def *>[In1 <: In, B](that: DynamoDBQuery[In1, B]): DynamoDBQuery[In1, B]
final def <*[In1 <: In, B](that: DynamoDBQuery[In1, B]): DynamoDBQuery[In1, Out]
final def <*>[In1 <: In, B](that: DynamoDBQuery[In1, B]): DynamoDBQuery[In1, (Out, B)]
final def capacity(capacity: ReturnConsumedCapacity): DynamoDBQuery[In, Out]
final def consistency(consistency: ConsistencyMode): DynamoDBQuery[In, Out]
def filter[B](filterExpression: ConditionExpression[B])(implicit ev: CanFilter[B, Out]): DynamoDBQuery[In, Out]

Filter a Scan or a Query

Filter a Scan or a Query

Attributes

def gsi(indexName: String, keySchema: KeySchema, projection: ProjectionType, readCapacityUnit: Long, writeCapacityUnit: Long): DynamoDBQuery[In, Out]
def gsi(indexName: String, keySchema: KeySchema, projection: ProjectionType): DynamoDBQuery[In, Out]
final def indexName(indexName: String): DynamoDBQuery[In, Out]
def lsi(indexName: String, keySchema: KeySchema, projection: ProjectionType): DynamoDBQuery[In, Out]
final def map[B](f: Out => B): DynamoDBQuery[In, B]
def parallel(n: Int): DynamoDBQuery[In, Out]

Parallel executes a DynamoDB Scan in parallel. There are no guarantees on order of returned items.

Parallel executes a DynamoDB Scan in parallel. There are no guarantees on order of returned items.

Attributes

n

The number of parallel requests to make to DynamoDB

def returns(returnValues: ReturnValues): DynamoDBQuery[In, Out]
def sortOrder(ascending: Boolean): DynamoDBQuery[In, Out]
def startKey(exclusiveStartKey: LastEvaluatedKey): DynamoDBQuery[In, Out]
final def transaction: DynamoDBQuery[In, Out]
def where[B](conditionExpression: ConditionExpression[B])(implicit ev: CanWhere[B, Out]): DynamoDBQuery[In, Out]
def whereKey(keyConditionExpression: KeyConditionExpression): DynamoDBQuery[In, Out]

Adds a KeyConditionExpression to a DynamoDBQuery. Example:

Adds a KeyConditionExpression to a DynamoDBQuery. Example:

val newQuery = query.whereKey(partitionKey("email") === "avi@gmail.com" && sortKey("subject") === "maths")

Attributes

def whereKey[B](conditionExpression: ConditionExpression[B])(implicit ev: CanWhereKey[B, Out]): DynamoDBQuery[In, Out]

Adds a KeyConditionExpression from a ConditionExpression to a DynamoDBQuery Must be in the form of <Condition1> && <Condition2> where format of <Condition1> is:

Adds a KeyConditionExpression from a ConditionExpression to a DynamoDBQuery Must be in the form of <Condition1> && <Condition2> where format of <Condition1> is:

<ProjectionExpressionForPartitionKey> === <value>

and the format of <Condition2> is:

<ProjectionExpressionForSortKey> <op> <value>

where op can be one of ===, >, >=, <, <=, between, beginsWith

Example using type safe API:

// email and subject are partition and sort keys respectively
val (email, subject, enrollmentDate, payment) = ProjectionExpression.accessors[Student]
// ...
val newQuery = query.whereKey(email === "avi@gmail.com" && subject === "maths")

}}}

Example using type safe API:

// email and subject are partition and sort keys respectively
val (email, subject, enrollmentDate, payment) = ProjectionExpression.accessors[Student]
// ...
val newQuery = query.whereKey(email === "avi@gmail.com" && subject === "maths")

Attributes

def withRetryPolicy(retryPolicy: Schedule[Any, Throwable, Any]): DynamoDBQuery[In, Out]
final def zip[In1 <: In, B](that: DynamoDBQuery[In1, B])(implicit z: Zippable[Out, B]): DynamoDBQuery[In1, Out]
final def zipLeft[In1 <: In, B](that: DynamoDBQuery[In1, B]): DynamoDBQuery[In1, Out]
final def zipRight[In1 <: In, B](that: DynamoDBQuery[In1, B]): DynamoDBQuery[In1, B]
final def zipWith[In1 <: In, B, C](that: DynamoDBQuery[In1, B])(f: (Out, B) => C): DynamoDBQuery[In1, C]