Skip to main content

Module view

Module view 

Source

Structs§

BrokenView
Dataset
What a view is matched against: the dataset’s location and table. Stdin’s - fits no path criterion, so piped data and handed frames match by columns alone.
MatchCriteria
SavedChart
A view’s chart: what is charted, and the options it is drawn with.
SavedChartExport
A chart export’s settings, as a view keeps them.
SavedSample
A view’s sample as a view keeps it: which rows, how they are picked, how many, and the seed that draws the same ones again.
SavedView
Every field but the settings may be left out, so an exported chart’s recipe, which carries only the settings, reads as a view.
ViewManager
ViewSettings
Views
The saved views, read on a worker from run’s start (a directory parse that can stall on slow mounts). Nothing needs them until a schema is known (--view, auto-apply) or the list opens; first use waits if still reading, so a requested view is never skipped. Derefs to the ViewManager.

Enums§

MatchReason
Why a view’s criteria fit the open file, worded as the list annotates rows; the strongest wins (same file over same columns over a glob).

Functions§

exact_location
A dataset location as a view records it (URL as written, local path absolute and resolved), shared by the save form and matching.
exact_path_matches
Whether the view’s exact path names file_path. URLs compare as text, ignoring a trailing slash, with the scheme either way.
filename_pattern_matches
Whether the view’s filename pattern fits the name of file_path.
match_reason
The strongest fitting criterion, or None: one test, so the list’s annotation never disagrees with V and auto-apply.
path_pattern_matches
Whether the view’s path pattern fits file_path, as opened or as the save form spells it (relative or linked paths still sit under the resolved directory).
relative_location
A local dataset’s path relative to the working directory, when it is under it. A URL has none: it names the same data wherever datui runs.
relative_path_matches
Whether the view’s relative path names the dataset at file_path.