• Antelope Release 5.10 Linux CentOS release 7.6.1810 (Core) 3.10.0 2020-05-12

 

NAME

dbnojoin - return a view composed only of records which don't join

SYNOPSIS

#include "db.h"

Dbptr dbnojoin(Dbptr db1, Dbptr db2, Tbl **keys1p,
                 Tbl **keys2p, char *view_name)

DESCRIPTION

This operation returns a view composed of all the records from the table specified with db1 which don't join with the table specified with db2. As with dbjoin, the join keys may be specified explicitly, or inferred from the schema.

OPTIONS

The join keys may be explicitly specified with keys1p and keys2p; or if these are pointers to zero, the inferred joined keys are returned; or if these are zero, the join keys are inferred, but not returned.

A name may be specified with view_name; if this is zero, a name is generated.

RETURN VALUES

returns dbinvalid(3) in case of failure, otherwise a valid db pointer to a (subset) view.

As with dbjoin(3), if the keys1p and keys2p pointers are non-zero, but point to zero, then the inferred join keys are returned, and the caller is responsible for freeing the lists, with a call like:


freetbl(keys1,0);

LIBRARY

$(DBLIBS)

DIAGNOSTICS

SEE ALSO

dbjoin(3)
dbnojoin(1)

AUTHOR

Daniel Quinlan
Printer icon