Row locks shared by the route registry and the routing lifecycle.
Summary
Functions
Locks one tenant blog row FOR UPDATE, returning nil when it is absent.
Locks one tenant post row within its blog FOR UPDATE, returning nil when it is absent.
Functions
@spec lock_blog(module(), BlogEngine.Context.t(), Ecto.UUID.t()) :: BlogEngine.Schema.Blog.t() | nil
Locks one tenant blog row FOR UPDATE, returning nil when it is absent.
@spec lock_post(module(), BlogEngine.Context.t(), Ecto.UUID.t(), Ecto.UUID.t()) :: BlogEngine.Schema.Post.t() | nil
Locks one tenant post row within its blog FOR UPDATE, returning nil when it is absent.