PgFlowDashboard.Queries.Flows (PgFlow v0.1.0)

Copy Markdown View Source

Database queries for flow-related data.

Summary

Functions

Counts all flows.

Gets a flow with its dependency graph.

Gets run history data for a GitHub-style activity grid.

Lists flows with statistics.

Functions

count_flows(repo)

@spec count_flows(module()) :: integer()

Counts all flows.

get_flow_with_graph(repo, flow_slug)

@spec get_flow_with_graph(module(), String.t()) ::
  {:ok, map()} | {:error, :not_found | term()}

Gets a flow with its dependency graph.

get_run_history_grid(repo, flow_slug, opts \\ [])

@spec get_run_history_grid(module(), String.t(), keyword()) :: map()

Gets run history data for a GitHub-style activity grid.

Returns a map with steps as keys and lists of run results as values.

list_flows(repo, opts \\ [])

@spec list_flows(
  module(),
  keyword()
) :: [map()]

Lists flows with statistics.

Options

  • :limit - Maximum number of flows to return
  • :cursor - Cursor for pagination (flow_slug to start after)