AshDynamo.DataLayer

View Source

A DynamoDB data layer for Ash, backed by ExAws.Dynamo.

DSL Documentation

dynamodb

Configure the DynamoDB table backing this resource for querying.

Examples:

dynamodb do
  table "users"
  partition_key :email
  sort_key :inserted_at
end

Options

NameTypeDefaultDocs
tableString.tTable name to read from/write to. Defaults to the underscored resource name.
partition_keyatomRequired partition (hash) key attribute name.
sort_keyatomnilOptional sort (range) key attribute name.