SelectoComponents.Session (selecto_components v0.4.8)

Canonical editable session state for SelectoComponents exploration.

This struct is the first internal seam in the runtime simplification work. It intentionally models editable explorer state only; query results and execution output stay outside the session.

Link to this section Summary

Link to this section Types

@type t() :: %SelectoComponents.Session{
  active_tab: String.t(),
  applied_revision: non_neg_integer(),
  ctes: list(),
  dirty?: boolean(),
  feature_state: map(),
  filters: list(),
  paging: map(),
  revision: non_neg_integer(),
  sort: term(),
  view_mode: String.t(),
  views: map()
}

Link to this section Functions

Link to this function

from_view_config(view_config, opts \\ [])

@spec from_view_config(
  map(),
  keyword()
) :: t()
Link to this function

new(attrs \\ %{})

@spec new(map()) :: t()
Link to this function

to_view_config(session)

@spec to_view_config(t()) :: map()