def get_children(cur, node):
    sql = """
        SELECT
          *
        FROM
          nodes
        WHERE
          parent=%s
        ORDER BY
          position;
    """
    cur.execute(sql, (int(node), ))
    for result in cur:
        yield NodeData(**result)
Return an iterator that yields a ``NodeData`` object of every
dataset/ETHPy150Open conceptsandtraining/libtree/libtree/core/query.py/get_children