Packages

Ecto/PostgreSQL storage adapter for the Hephaestus workflow engine. Persists workflow instances across VM restarts using a single table with JSONB state and GIN indexing.

Current section

Files

Jump to
hephaestus_ecto lib hephaestus_ecto.ex
Raw

lib/hephaestus_ecto.ex

defmodule HephaestusEcto do
@moduledoc """
Ecto/PostgreSQL storage adapter for Hephaestus workflow instances.
## Usage
defmodule MyApp.Hephaestus do
use Hephaestus,
storage: {HephaestusEcto.Storage, repo: MyApp.Repo}
end
## Setup
$ mix hephaestus_ecto.gen.migration
$ mix ecto.migrate
"""
end