Package-level declarations

Types

Link copied to clipboard

Defines the specification for reading/writing items from DynamoDbMapper directly (e.g., cross-table operations)

Link copied to clipboard

Represents a secondary index on a table in DynamoDB and an associated item schema. Operations on this index will invoke low-level operations and map items to objects.

Link copied to clipboard
interface IndexSpec<T> : PersistenceSpec<T>

Specifies how items can be read from a secondary index

Link copied to clipboard
interface Item : Map<String, AttributeValue>

An immutable representation of a low-level item in a DynamoDB table. Items consist of attributes, each of which have a string name and a value.

Link copied to clipboard

Represents a source of DynamoDB items (such as a table or secondary index)

Link copied to clipboard

A mutable representation of a low-level item in a DynamoDB table. Items consist of attributes, each of which have a string name and a value.

Link copied to clipboard
interface PersistenceSpec<T>

Specifies how items can be read from and written to a specific DynamoDB location (such as a table or a secondary index)

Link copied to clipboard

Defines AttributeKey instances for schema-specific metadata

Link copied to clipboard

Represents a table in DynamoDB and an associated item schema. Operations on this table will invoke low-level operations after mapping objects to items and vice versa.

Link copied to clipboard
interface TableSpec<T> : PersistenceSpec<T>

Specifies how items can be read from and written to a table

Functions

Link copied to clipboard
inline fun buildItem(block: MutableItem.() -> Unit): Item

Builds a new immutable Item by populating a MutableItem using the provided block and returning a read-only copy of it.

Link copied to clipboard
fun itemOf(): Item

Returns a new immutable Item with no attributes (i.e., an empty item)

fun itemOf(vararg pairs: Pair<String, AttributeValue>): Item

Returns a new immutable Item with the specified attributes, given as name-value pairs

Link copied to clipboard

Returns a new immutable Item with the specified attributes, given as name-value pairs

Inherited functions

Link copied to clipboard
Link copied to clipboard
suspend fun <T, PK : KeyType, SK : KeyType> Table.CompositeKey<T, PK, SK>.getItem(item: T): GetItemResponse<T>
suspend fun <T, PK : KeyType> Table.PartitionKey<T, PK>.getItem(item: T): GetItemResponse<T>
Link copied to clipboard
suspend fun <T> Table<T>.putItem(item: T): PutItemResponse<T>
Link copied to clipboard

Convert this MutableItem to an immutable Item. Changes to this instance do not affect the returned instance.

Converts this map to an immutable Item

Link copied to clipboard

Convert this Item into a MutableItem. Changes to the returned instance do not affect this instance.

Converts this map to a MutableItem