skuld_repo

Repo > | Umbrella →

Ecto Repo integration for Skuld: effectful dispatch facade with InMemory, Ecto, and Stub handlers.

What's included

Installation

def deps do
[
{:skuld_repo, "~> 0.32"}
]
end

Quick start

alias Skuld.Repo
comp do
user <- Repo.insert!(changeset)
found <- Repo.get(User, user.id)
{user, found}
end
|> Port.with_handler(%{Repo.Effectful => MyApp.Repo.Ecto})
|> Throw.with_handler()
|> Comp.run!()

See the architecture guide for how this fits into the Skuld ecosystem.


Repo > | Umbrella →