DoubleEntryLedger.Repo.Proxy (double_entry_ledger v0.4.0)

View Source

Repo dispatcher used by the library's internal modules.

Library modules alias this as Repo:

alias DoubleEntryLedger.Repo.Proxy, as: Repo

Each call here forwards at runtime to whichever repo the consumer configured (config :double_entry_ledger, repo: MyApp.Repo), falling back to DoubleEntryLedger.Repo when no override is set.

Runtime dispatch is required because Mix's compile_env tracking doesn't reach into path/hex deps reliably; compile-time aliases would freeze at the library's own default.

Only the Ecto.Repo callbacks actually used by the library are defined. Add more here if internal code needs them.

Summary

Functions

all(q)

all(q, opts)

delete(x)

delete(x, opts)

get(q, id)

get(q, id, opts)

insert(x)

insert(x, opts)

insert!(x)

insert!(x, opts)

one(q)

one(q, opts)

preload(s, preloads)

preload(s, preloads, opts)

transaction(f)

transaction(f, opts)

update(x)

update(x, opts)

update!(x)

update!(x, opts)