Method Tree_SelectSubtreeRows()
The subtree under an object in one statement: every descendant down to a depth, as rows
(Id, IdParent, IdScheme, Depth; the children of the object have depth 1), ordered by _name, _id as the children
queries order them, so that the children of each parent come in that order. With a scheme, the walk keeps to
objects of that scheme (a child of another scheme and what hangs below it are not reached).
Params: $1=objectId, $2=schemeId or NULL for any scheme, $3=maxDepth. A cycle in _id_parent repeats rows up to
the depth; the caller detects it.
public string Tree_SelectSubtreeRows()