Upstream pgflow 0.17.2 slug rules (pgflow.is_valid_slug/1), mirrored for
compile-time and pre-flight checks. The database remains authoritative.
Summary
Functions
Turns a validation reason into the message shown by the DSL and slug audit.
Finds the first group of slugs that share a lowercased name.
Maximum PGMQ queue name length. Flow slugs are lowercased into this budget.
Maximum flow or step slug length accepted by pgflow 0.17.2.
Returns the flow-mode queue name, which is the lowercased slug.
Returns true when slug satisfies every upstream slug rule.
Validates a flow or step slug and returns the first broken rule.
Rejects a queue name longer than the PGMQ limit.
Types
Functions
Turns a validation reason into the message shown by the DSL and slug audit.
Finds the first group of slugs that share a lowercased name.
Returns nil when every slug lowercases to a distinct name, or
{lowercased, slugs} with the colliding slugs in input order.
@spec max_queue_name_length() :: pos_integer()
Maximum PGMQ queue name length. Flow slugs are lowercased into this budget.
@spec max_slug_length() :: pos_integer()
Maximum flow or step slug length accepted by pgflow 0.17.2.
Returns the flow-mode queue name, which is the lowercased slug.
Returns true when slug satisfies every upstream slug rule.
Validates a flow or step slug and returns the first broken rule.
@spec validate_queue_name(String.t()) :: :ok | {:error, :queue_name_too_long}
Rejects a queue name longer than the PGMQ limit.