synology_apm_repo.sdk.units.saas.tree_strategy.synthetic_grouped module¶
SyntheticGroupedTree: one table, optionally grouped by a column’s
values (Mail, Contact).
- class synology_apm_repo.sdk.units.saas.tree_strategy.synthetic_grouped.SyntheticGroupedTree(provider, *, table, columns, id_column, group_column, display_name, root_name, order_by, descending=False, group_display_name=None)¶
Bases:
objectOne group per distinct
group_columnvalue, named bygroup_display_name(default: the value itself); rows whose value is NULL fall in theroot_namegroup. Withgroup_column=Noneevery row is in the singleroot_namegroup.- async children_of(key, *, offset=0, limit=None)¶