adk_eval_store_mnesia (erlang_adk v0.10.0)

View Source

Local durable Mnesia implementation of adk_eval_store.

The adapter uses fixed, operator-owned table atoms and serializable records. Operators may add replicas with normal Mnesia administration. Every capacity-changing mutation takes a write lock on the usage row, so limits remain strict across concurrent callers and nodes.

Summary

Functions

capabilities(Handle)

-spec capabilities(map()) -> map().

create_evaluation(Handle, Scope, Set0, Job0)

-spec create_evaluation(map(), adk_eval_store:scope(), map(), map()) -> {ok, map()} | {error, term()}.

create_job(Handle, Scope, Job0)

get_baseline(Handle, Scope, Name)

get_job(Handle, Scope, JobId)

get_set(Handle, Scope, Id, Version)

init(Config0)

-spec init(map()) -> {ok, map()} | {error, term()}.

list_jobs(Handle, Scope, Options)

list_sets(Handle, Scope, Options)

ownership_identity(Handle)

-spec ownership_identity(term()) -> {ok, term()} | {error, term()}.

prune(Handle, Scope, Options)

-spec prune(map(), adk_eval_store:scope(), map()) -> {ok, map()} | {error, term()}.

put_baseline(Handle, Scope, Name, JobId)

put_set(Handle, Scope, Set0)

recover_active(Handle, Reason)

table_names(Handle)

-spec table_names(map()) -> [atom()].

transition_job(Handle, Scope, JobId, Expected, Phase, Patch)