Cerbero.DDL.Locks (cerbero v0.1.0)

Copy Markdown View Source

The (operation class, engine, version range) -> {lock, cost} mapping. This is DATA, not conditionals; layer 4's lock-verification suite is its empirical anchor. Anything absent returns :unmapped and Effects applies the conservative default (AEL + rewrite + tripwire finding).

Summary

Functions

classes()

@spec classes() :: [atom()]

entry(class, arg2, version_num)

@spec entry(atom(), :postgres | :cockroachdb, integer()) ::
  {Cerbero.DDL.Effect.lock(), Cerbero.DDL.Effect.cost()} | :unmapped