Itaco

itaco is a wrapper that assists ecto

Installation

def deps do
  [
    {:itaco, "~> 1.0.0"}
  ]
end

usage

defmodule TestApp.User do
  use Itaco, schema: TestApp.User.Account, repo: TestApp.Repo
end
User.find(1) # => SELECT * FROM accounts WHERE id = 1

User.all # => SELECT * FROM accounts

User.where(name: "hoge") # => SELECT * FROM accounts WHERE name = 'hoge'

User.create(name: "大阪しずく", email: "s.ohsaka@example.com")

User.updaate(user, name: "桜坂しずく")

User.delete(user)

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/itaco.