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: object

One group per distinct group_column value, named by group_display_name (default: the value itself); rows whose value is NULL fall in the root_name group. With group_column=None every row is in the single root_name group.

async children_of(key, *, offset=0, limit=None)