simple_repo v0.1.3 SimpleRepo.Repository
SimpleRepo.Repository provides a macro enabling you to create simple database interactions. The macro can be used by providing it the Ecto.Repo module:
defmodule MyRepository do
use SimpleRepo.Repository, repo: MyRepo
end
The following functions are available:
save/2, one/3, all/2, patch/4, destroy/3, aggregate/4
You can see the function as a mapping to crud actions: create -> save update -> patch show -> one index -> all delete -> destroy