Tane
This module provides some functions to insert seeds.
import Tane
init
|> repo(MyApp.Repo)
|> model(MyApp.User)
|> seed(name: "Bob", email: "bob@black.com")
|> seed(name: "Mary", email: "mary@blue.com")
Summary↑
| delete_all!(tane) | Delete all entries stored in the repository.
Internally invokes |
| init() | |
| model(tane, model_module) | |
| repo(tane, repo_module) | |
| seed(tane, row) |
Types ↑
t :: %Tane{model: term, repo: term}
Functions
Specs:
Delete all entries stored in the repository.
Internally invokes repo.delete_all(model).
Specs:
- init :: t
Specs:
Specs:
Specs: