PhoenixLiveCalendar.Store.Ecto.RepoHelper (PhoenixLiveCalendar v0.1.0)

Copy Markdown View Source

Runtime repo resolution for the optional Ecto layer.

Resolves the consumer's Ecto repo at runtime via application config:

config :phoenix_live_calendar, repo: MyApp.Repo

Never resolves at compile time (follows Elixir library guidelines).

Summary

Functions

Delegates to the configured repo's all/2.

Delegates to the configured repo's delete/2.

Delegates to the configured repo's get/3.

Delegates to the configured repo's insert/2.

Delegates to the configured repo's one/2.

Returns the configured Ecto repo module.

Delegates to the configured repo's update/2.

Functions

all(queryable, opts \\ [])

Delegates to the configured repo's all/2.

delete(struct_or_changeset, opts \\ [])

Delegates to the configured repo's delete/2.

get(queryable, id, opts \\ [])

Delegates to the configured repo's get/3.

insert(changeset, opts \\ [])

Delegates to the configured repo's insert/2.

one(queryable, opts \\ [])

Delegates to the configured repo's one/2.

repo()

@spec repo() :: module()

Returns the configured Ecto repo module.

Raises if no repo is configured.

update(changeset, opts \\ [])

Delegates to the configured repo's update/2.