Documentation
¶
Overview ¶
Package apicompute contains internal implementation for FeedCompute
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FeedCompute ¶ added in v0.6.0
func FeedCompute(m *apptypes.MobsqlRuntime, feedIDs []int) (*apptypes.FeedOpResult, error)
FeedCompute recomputes the 'computed' table specifications as defined by [SchemaExtra] in runtime initialization.
A computed table is defined by [ComputedTable] and similar to the concept of a materialized view however works on a per-GTFS-feed level. The overall idea behind computed tables is that end-library users can defined specific GTFS-derived tables (and then 'recompute') these tables per GTFS on new data load. The GTFS-derived computed tables always map directly to a SQL select statement (and optionally pre/post init/deinit exec SQL logic).
An example of computed tables usage is within Mobroute, for example the Connection-Scan-Algorithm master 'connections' table (_ctconn) is defined as a view through a [ComputedTable] spec.
Types ¶
This section is empty.