I don't see "database" mentioned anywhere on that page. What direction are you going to head in with that?
It is possible to write an Ecto adapter for Riak, with some workarounds. I tried it once, but the motivation to continue...
Rather than try to give examples, take a look at their Github page: https://github.com/elixir-lang/ecto