ArkePostgres (arke_postgres v0.8.0-rc.0)

Copy Markdown View Source

Summary

Functions

Transaction seam for the arke write pipeline: {:error, _} from the wrapped function rolls the transaction back and is returned as-is. A raised constraint violation aborts the transaction and is translated to {:error, %{constraint: ..., message: ...}} after the rollback.

Functions

check_env()

create(project, unit)

create_project(unit)

data_as_klist(data)

delete(project, unit)

delete_project(unit)

handle_update(project, arke, unit)

handle_update_key(arke, old_unit, new_unit)

init()

transaction(fun, opts \\ [])

Transaction seam for the arke write pipeline: {:error, _} from the wrapped function rolls the transaction back and is returned as-is. A raised constraint violation aborts the transaction and is translated to {:error, %{constraint: ..., message: ...}} after the rollback.

update(project, unit)

update_key(old_unit, new_unit)