GoodAnalytics.Repo (GoodAnalytics v0.1.1)

Copy Markdown View Source

Provides access to the host application's Ecto repo.

GoodAnalytics doesn't define its own Ecto.Repo — it borrows the host application's repo at runtime. Context modules call repo() directly:

GoodAnalytics.Repo.repo().all(query)
GoodAnalytics.Repo.repo().insert(changeset)

Configure via:

config :good_analytics, repo: MyApp.Repo

Summary

Functions

Returns the configured Ecto repo module.

Functions

repo()

Returns the configured Ecto repo module.

Raises if no repo has been configured.