Module rollup_cascade.spec

Define RollupCascadeSpec for associating a group of cascade/rollup operations with specific table(s)

Classes

class RollupCascadeSpec (*args: CascadeColumn | RollupColumn, tables: collections.abc.Sequence[str] = ())

Settings for the rollup_column_values and cascade_column_values functions.

Args

tables : Sequence[str]
the names of the tables to which the settings should be applied. If empty, settings are applied to ALL tables.
column_specs : list[CascadeColumn]
list of CascadeColumn or RollupColumn instances (note that RollupColumn inherts from CascadeColumn) to associated with the listed tables or all tables if tables is empty.

Instance variables

prop cascade_columns : list[CascadeColumn]

Settings for columns whose values should be cascaded to subsequent rows when one or more reference columns has a value.

prop rollup_columns : list[RollupColumn]

Settings for columns whose values should be cascaded to subsequent rows when one or more reference columns has a value.