Literature.Repo (literature v0.1.13)

Wrappers around Ecto.Repo callbacks.

These functions should be used when working with an Ecto repo. These functions will resolve the correct repo instance, and set the schema prefix and the log level, according to the Literature configuration.

Link to this section Summary

Link to this section Functions

Link to this function

all(queryable, opts \\ [])

Wraps Ecto.Repo.all/2.

Link to this function

delete(struct_or_changeset, opts \\ [])

Wraps Ecto.Repo.delete/2.

Link to this function

get(struct, opts \\ [])

Wraps c:Ecto.Repo.get/2.

Link to this function

get_by(struct, opts \\ [])

Wraps c:Ecto.Repo.get_by/2.

Link to this function

insert(struct_or_changeset, opts \\ [])

Wraps Ecto.Repo.insert/2.

Link to this function

paginate(queryable, opts \\ [])

Wraps c:Ecto.Repo.paginate/2.

Link to this function

preload(struct_or_changeset, opts \\ [])

Wraps c:Ecto.Repo.preload/2.

Link to this function

update(changeset, opts \\ [])

Wraps Ecto.Repo.update/2.