EctoExplorer (ecto_explorer v0.1.0) View Source

Documentation for EctoExplorer.

Link to this section Summary

Functions

This macro allows you to easily explore Ecto associations in your shell, without having to Repo.preload/2 each time you want to explore the next association.

Link to this section Functions

This macro allows you to easily explore Ecto associations in your shell, without having to Repo.preload/2 each time you want to explore the next association.

You need to use EctoExplorer, repo: <your-ecto-repo> before you can use the ~>/2 macro.

Example:

iex> author = Repo.get(Author, 1)
%Author{id: 1}

iex> author~>address.city
"Lisbon"

iex> author~>posts[0].title
"My first blog post"
Link to this function

maybe_start_repo_agent(repo)

View Source