ecto_adapters_dynamodb v0.2.3 Ecto.Adapters.DynamoDB.Cache View Source
An Elixir agent to cache DynamoDB table schemas and the first page of results for selected tables
Link to this section Summary
Functions
Returns the cached value for a call to DynamoDB, describe-table. Performs a DynamoDB scan if not yet cached and raises any errors as a result of the request. The raw json is presented as an elixir map
Returns the current cache of table schemas, and cache of first page of results for selected tables, as an Elixir map
Returns the cached first page of results for a table. Performs a DynamoDB scan if not yet cached and raises any errors as a result of the request
Performs a DynamoDB scan and caches (without returning) the first page of results. Raises any errors as a result of the request
Performs a DynamoDB, describe-table, and caches (without returning) the result. Raises any errors as a result of the request
Link to this section Functions
describe_table(table_name_t) :: {:ok, dynamo_response_t} | {:error, term}
describe_table!(table_name_t) :: dynamo_response_t | no_return
Returns the cached value for a call to DynamoDB, describe-table. Performs a DynamoDB scan if not yet cached and raises any errors as a result of the request. The raw json is presented as an elixir map.
Returns the current cache of table schemas, and cache of first page of results for selected tables, as an Elixir map
scan(table_name_t) :: {:ok, dynamo_response_t} | {:error, term}
scan!(table_name_t) :: dynamo_response_t | no_return
Returns the cached first page of results for a table. Performs a DynamoDB scan if not yet cached and raises any errors as a result of the request
update_cached_table(table_name_t) :: :ok | {:error, term}
update_cached_table!(table_name_t) :: :ok | no_return
Performs a DynamoDB scan and caches (without returning) the first page of results. Raises any errors as a result of the request
update_table_info(table_name_t) :: :ok | {:error, term}
update_table_info!(table_name_t) :: :ok | no_return
Performs a DynamoDB, describe-table, and caches (without returning) the result. Raises any errors as a result of the request