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

 

NAME

dbbase - returns base table dbptr for view record

SYNOPSIS

#include "db.h"

Dbptr dbbase(Dbptr dbv, char *tablename)

DESCRIPTION

It's sometimes useful to find the base record corresponding to a particular record in a view -- for one of the tables participating in the view. dbbase returns a base table db pointer corresponding to a particular input record dbv.

If the tablename pointer is zero, dbbase looks for the base table corresponding to the field identified by the input db pointer dbv.

RETURN VALUES

dbbase returns a base table db pointer, or dbinvalid() if a corresponding base table record cannot be found. This can happen if the input dbv does not identify a single record, or is a grouped view, or if tablename is zero and dbv.field doesn't correspond to a field in the table.

LIBRARY

$(DBLIBS)

SEE ALSO

dbjoin(3), dbsubset(3), dbsort(3)

BUGS AND CAVEATS

No messages are left on the error log.

AUTHOR

Daniel Quinlan
Printer icon