7 * search for a tuple that has the given 'attr=val' and also 'rattr=x'.
8 * copy 'x' into 'buf' and return the whole tuple.
10 * return nil if not found.
13 ndbgetvalue(Ndb *db, Ndbs *s, char *attr, char *val, char *rattr, Ndbtuple **pp)
23 t = ndbsearch(db, s, attr, val);
25 nt = ndbfindattr(t, s->t, rattr);
35 t = ndbsnext(s, attr, val);