synology_apm_repo.sdk.units.saas.tree_strategy.named_group_flat module¶
NamedGroupFlatTree: Calendar’s shape — the flat-list variant of
this package’s two tree shapes: an outer table whose rows are the named
groups, with a separately-queried flat leaf table grouped by a foreign
key, rather than parent-pointer recursion (Drive, Site’s document
libraries, Contact folders).
- class synology_apm_repo.sdk.units.saas.tree_strategy.named_group_flat.NamedGroupFlatTree(provider, *, group_table, group_columns, group_id_column, group_name_column, leaf_table, leaf_columns, leaf_id_column, leaf_group_column, display_name, order_by, group_name_override=None)¶
Bases:
objectCalendar’s shape: an outer table whose rows are the groups (with their own display-name column); an inner table holds flat leaves grouped by a foreign key. The outer listing is a one-shot full scan +
paginateslice (small, bounded — every real “level” is the event count within one calendar, not the calendar count itself); the leaf level gets a realWHERE/ORDER BY/LIMIT/OFFSETquery.group_name_overridelets a caller replace a specific group’s own name; unused (None) means every group shows itsgroup_name_columnvalue verbatim.- async children_of(key, *, offset=0, limit=None)¶
- row_for(key)¶