SelectoComponents.Execution.ResultState (selecto_components v0.4.8)

Bridges normalized execution results into socket assigns and notifications.

Link to this section Summary

Link to this section Functions

Link to this function

assign_result(socket, result)

Link to this function

build_exit_failure(socket, params, execution_error)

@spec build_exit_failure(Phoenix.LiveView.Socket.t(), map(), map()) ::
  Phoenix.LiveView.Socket.t()
Link to this function

build_processing_failure(socket, params, execution_error)

@spec build_processing_failure(Phoenix.LiveView.Socket.t(), map(), map()) ::
  Phoenix.LiveView.Socket.t()
Link to this function

maybe_notify_query_executed(result)

@spec maybe_notify_query_executed(SelectoComponents.Execution.Result.t()) :: :ok
Link to this function

success_row_count(result)

@spec success_row_count(SelectoComponents.Execution.Result.t()) :: non_neg_integer()