Search code examples
elixirphoenix-frameworkectotirexs

Minimum requirements for Ecto NoSQL adapter


We are looking for a best possible way to incorporate Elastic into our project while preserving all the goodness that phoenix-ecto has to offer, i.e. changeset validations and Phoenix.HTML.Form compatibility.

With Ecto 2.0 it looks like that this task should be easier than ever.

So the questions are:

  • Is there a skeleton for a NoSQL Ecto adapter?
  • What preliminary requirements? Pitfalls?
  • What are minimum requirements for such adapter to handle embbeds?

Solution

  • Michal Muskala wrote a nice article about creating a NoSQL adapter for Ecto:

    Blog Post