Upgrading to the latest version of this adapter should be relatively painless, since you'd really just be following Ecto's instructions for setting the adapter (albeit with some of our specific configuration details, specified in the README).
Probably the most notable change is that you no longer define the adapter in your application's config/
file(s), but rather in the Repo
file itself. For example:
defmodule MyApp.Repo do
use Ecto.Repo,
otp_app: :my_app,
adapter: Ecto.Adapters.DynamoDB
end
In order to make sure your local version of DynamoDB is up to date with the current production features, please use the latest release of DynamoDB local. As of spring 2020, the latest version is 1.11.478
, released on January 16, 2020. This major version release of the adapter should still be compatible with version 1.11.477
, but we strongly recommending upgrading.